Fixing more of the same problem. nsCOMPtr comparisons. Sorry!
git-svn-id: svn://10.0.0.236/trunk@70383 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user