replacing another Length() call with IsEmpty()

git-svn-id: svn://10.0.0.236/branches/MICROB_20061206_BRANCH@217656 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
timeless%mozdev.org
2007-01-02 22:21:23 +00:00
parent 6452a55fa6
commit 2940129778

View File

@@ -308,7 +308,7 @@ EmbedContextMenuInfo::GetSelectedText()
if (NS_FAILED(rv) || !htmlDoc)
return nsnull;
rv = htmlDoc->GetSelection(cString);
if (NS_FAILED(rv) || cString.Length() <= 0)
if (NS_FAILED(rv) || cString.IsEmpty())
return nsnull;
rv = NS_OK;
}