bug 100649: Length() being used where IsEmpty() is meant

treewide changes to convert incorrect usages of string.Length() to string.IsEmpty().

thanks to afatecha@idea.com.py (Ariel Fatecha) for the patch. r=dwitte, sr=jst.

got the ok from Asa to land into a closed tree.


git-svn-id: svn://10.0.0.236/trunk@142828 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dwitte%stanford.edu
2003-05-23 21:34:47 +00:00
parent e8f1337edd
commit dc7e857400
129 changed files with 462 additions and 469 deletions

View File

@@ -956,7 +956,7 @@ nsExpatDriver::CanParse(CParserContext& aParserContext,
result=ePrimaryDetect;
}
else {
if (0 == aParserContext.mMimeType.Length() &&
if (aParserContext.mMimeType.IsEmpty() &&
kNotFound != aBuffer.Find("<?xml ")) {
aParserContext.SetMimeType(NS_LITERAL_CSTRING(kXMLTextContentType));
result=eValidDetect;