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.
This commit is contained in:
dwitte%stanford.edu 2006-02-10 22:49:58 +00:00
parent 91b56bc571
commit c5587511ea

View File

@ -373,8 +373,8 @@ NS_IMETHODIMP nsDeviceContextMac :: GetSystemFont(nsSystemFontID aID, nsFont *aF
::TECDisposeConverter(converter);
}
}
NS_ASSERTION(aFont->name.Length() > 0, "empty font name");
if (aFont->name.Length() == 0)
NS_ASSERTION(!aFont->name.IsEmpty(), "empty font name");
if (aFont->name.IsEmpty())
{
aFont->name.AssignWithConversion( (char*)&fontName[1], fontName[0] );
}