265333 don't explicitly pass all arguments to NS_NewInputStreamChannel, so that the
more efficient variant with fewer arguments can be used r+sr=darin
This commit is contained in:
@@ -215,11 +215,8 @@ RunTest(nsIFile *file)
|
||||
if (uri)
|
||||
uri->SetSpec(NS_LITERAL_CSTRING("foo://bar"));
|
||||
|
||||
const nsAFlatCString& empty = EmptyCString();
|
||||
|
||||
nsCOMPtr<nsIChannel> chan;
|
||||
rv = NS_NewInputStreamChannel(getter_AddRefs(chan), uri, stream, empty,
|
||||
empty);
|
||||
rv = NS_NewInputStreamChannel(getter_AddRefs(chan), uri, stream);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
rv = chan->SetNotificationCallbacks(new MyCallbacks());
|
||||
|
||||
Reference in New Issue
Block a user