mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-16 14:55:47 +00:00
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:
parent
91b56bc571
commit
c5587511ea
@ -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] );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user