Some random code cleanup:

1)  Make SetContentSink and SetParserFilter not claim to return stuff
2)  Clean up nsIParser to use NS_IMETHOD_() where needed.  Sync up with nsParser
3)  Removed some never-used code

Bug 40149, r=harishd, sr=jst


git-svn-id: svn://10.0.0.236/trunk@140868 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzbarsky%mit.edu
2003-04-08 21:23:34 +00:00
parent 3410e51cf4
commit 7812a1f039
7 changed files with 365 additions and 366 deletions

View File

@@ -734,11 +734,8 @@ nsHTMLDocument::StartAutodetection(nsIDocShell *aDocShell, nsAString& aCharset,
rv_detect = adp->Init(wss, cdet, this, mParser,
PromiseFlatString(aCharset).get(), aCommand);
// The current implementation for SetParserFilter needs to
// be changed to be more XPCOM friendly. See bug #40149
if (mParser)
nsCOMPtr<nsIParserFilter> oldFilter =
getter_AddRefs(mParser->SetParserFilter(cdetflt));
mParser->SetParserFilter(cdetflt);
}
}
}