From c5587511eaf4e7c769466c0495bb6f8aad2efb7e Mon Sep 17 00:00:00 2001 From: "dwitte%stanford.edu" Date: Fri, 10 Feb 2006 22:49:58 +0000 Subject: [PATCH] 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. --- widget/src/mac/nsDeviceContextMac.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/widget/src/mac/nsDeviceContextMac.cpp b/widget/src/mac/nsDeviceContextMac.cpp index 859ef43f5a2b..c2fd50d23c30 100644 --- a/widget/src/mac/nsDeviceContextMac.cpp +++ b/widget/src/mac/nsDeviceContextMac.cpp @@ -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] ); }