Bug 802884 - Fix a build failure in Visual C++ 2012 because of what seems to be a compiler bug; r=me

This commit is contained in:
Ehsan Akhgari 2012-10-17 20:07:05 -04:00
parent 6669152d43
commit 335b6cc84a

View File

@ -763,7 +763,11 @@ nsHTMLEditor::NodeIsBlockStatic(const dom::Element* aElement)
}
bool isBlock;
DebugOnly<nsresult> rv = nsContentUtils::GetParserService()->
#ifdef DEBUG
// XXX we can't use DebugOnly here because VC++ is stupid (bug 802884)
nsresult rv =
#endif
nsContentUtils::GetParserService()->
IsBlock(nsContentUtils::GetParserService()->HTMLAtomTagToId(tagAtom),
isBlock);
MOZ_ASSERT(rv == NS_OK);