bug 229183 : Eliminate an unnecessary QI r+sr=jst

This commit is contained in:
hpradhan%hotpop.com 2003-12-25 10:30:48 +00:00
parent ab67185554
commit 1f6e3ca078

View File

@ -74,7 +74,6 @@
#include "nsIContentViewer.h"
#include "nsIMarkupDocumentViewer.h"
#include "nsIDocShell.h"
#include "nsIWebShell.h"
#include "nsIDocShellTreeItem.h"
#include "nsIWebNavigation.h"
#include "nsIBaseWindow.h"
@ -990,11 +989,10 @@ nsHTMLDocument::StartDocumentLoad(const char* aCommand,
sink = aSink;
else {
if (IsXHTML()) {
nsCOMPtr<nsIWebShell> webShell(do_QueryInterface(aContainer));
nsCOMPtr<nsIXMLContentSink> xmlsink;
rv = NS_NewXMLContentSink(getter_AddRefs(xmlsink), this, aURL,
webShell, aChannel);
docShell, aChannel);
sink = xmlsink;
} else {