Bug 1109311 - Fix the -Wundefined-bool-conversion warning in nsHtml5TreeBuilder.cpp resulting from checking the value of this; r=hsivonen

Clang gives the following warning for this code:

'this' pointer cannot be null in well-defined C++ code; pointer may be assumed to always convert to true

--HG--
extra : rebase_source : cd9bc242d22b0a5aa6767ce442368638d6186400
This commit is contained in:
Ehsan Akhgari 2014-12-18 10:33:28 -05:00
parent 3d3f2060bd
commit cb16e9f5cc

View File

@ -3212,15 +3212,11 @@ nsHtml5TreeBuilder::documentModeInternal(nsHtml5DocumentMode m, nsString* public
{
if (isSrcdocDocument) {
quirks = false;
if (this) {
this->documentMode(STANDARDS_MODE);
}
this->documentMode(STANDARDS_MODE);
return;
}
quirks = (m == QUIRKS_MODE);
if (this) {
this->documentMode(m);
}
this->documentMode(m);
}
bool