Bug 1299727 - Rename NS_WARN_IF_FALSE as NS_WARNING_ASSERTION. r=erahm.
The new name makes the sense of the condition much clearer. E.g. compare: NS_WARN_IF_FALSE(!rv.Failed()); with: NS_WARNING_ASSERTION(!rv.Failed()); The new name also makes it clearer that it only has effect in debug builds, because that's standard for assertions.
This commit is contained in:
@@ -746,7 +746,7 @@ nsHTMLDocument::StartDocumentLoad(const char* aCommand,
|
||||
"How did those end up different here? wyciwyg channels are "
|
||||
"not nsICachingChannel");
|
||||
rv = cachingChan->SetCacheTokenCachedCharset(charset);
|
||||
NS_WARN_IF_FALSE(NS_SUCCEEDED(rv), "cannot SetMetaDataElement");
|
||||
NS_WARNING_ASSERTION(NS_SUCCEEDED(rv), "cannot SetMetaDataElement");
|
||||
rv = NS_OK; // don't propagate error
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user