зеркало из https://github.com/mozilla/gecko-dev.git
Fixing more of the same problem. nsCOMPtr comparisons. Sorry!
This commit is contained in:
Родитель
f5734823c0
Коммит
4e91cec88a
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче