fixing bustage. I didn't realize what a common (and mistaken) pattern it was to compare a |nsString| to |nsnull|. Better to say |IsEmpty()|.

git-svn-id: svn://10.0.0.236/trunk@234729 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
scc%mozilla.org
2007-09-06 21:57:34 +00:00
parent 15cb7e375e
commit 19073dcf2d

View File

@@ -335,7 +335,7 @@ LocalSearchDataSource::doMatch(nsIRDFLiteral *literal, const nsString &matchMeth
{
PRBool found = PR_FALSE;
if ((nsnull == literal) || (nsnull == matchMethod) || (nsnull == matchText))
if ((nsnull == literal) || matchMethod.IsEmpty() || matchText.IsEmpty())
return(found);
const PRUnichar *str = nsnull;