mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
3d3f2060bd
commit
cb16e9f5cc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user