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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user