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:
@@ -544,7 +544,7 @@ NS_IMETHODIMP mozLineTerm::Write(const PRUnichar *buf,
|
||||
nsAutoString timeStamp;
|
||||
result = mozXMLTermUtils::TimeStamp(60, mLastTime, timeStamp);
|
||||
|
||||
if (NS_SUCCEEDED(result) && (timeStamp.Length() > 0)) {
|
||||
if (NS_SUCCEEDED(result) && !timeStamp.IsEmpty()) {
|
||||
char* temStr = ToNewCString(timeStamp);
|
||||
PR_LogPrint("<TS %s>\n", temStr);
|
||||
nsMemory::Free(temStr);
|
||||
|
||||
Reference in New Issue
Block a user