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:
cbiesinger@web.de
2004-10-25 22:08:09 +00:00
parent 5319bafe57
commit f0a4397b19
8 changed files with 8 additions and 18 deletions

View File

@@ -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());