Fixing more of the same problem. nsCOMPtr comparisons. Sorry!

This commit is contained in:
cata@netscape.com
2000-05-17 07:40:40 +00:00
parent e817195c07
commit 0d850e45a8
2 changed files with 4 additions and 4 deletions

View File

@@ -674,10 +674,10 @@ nsHTMLDocument::StartDocumentLoad(const char* aCommand,
Recycle(forceCharsetFromWebShell);
//TODO: we should define appropriate constant for force charset
charsetSource = kCharsetFromPreviousLoading;
} else if ((dcInfo != NULL) && (override)) {
} else if ((dcInfo.get() != NULL) && (override)) {
nsCOMPtr<nsIAtom> csAtom;
dcInfo->GetForcedCharset(getter_AddRefs(csAtom));
if (csAtom != NULL) {
if (csAtom.get() != NULL) {
csAtom->ToString(charset);
charsetSource = kCharsetFromPreviousLoading;
}