Convert Compare() to Equals() where possible now that we can do

case-insensitive Equals().  Bug 115289, r=alecf, sr=jag


git-svn-id: svn://10.0.0.236/trunk@113665 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzbarsky%mit.edu
2002-02-05 02:03:07 +00:00
parent 2a88b29b3d
commit 2fd80b82c9
69 changed files with 321 additions and 305 deletions

View File

@@ -1447,7 +1447,7 @@ HTMLAttributesImpl::HasClass(nsIAtom* aClass, PRBool aCaseSensitive) const
const PRUnichar* class2Buf;
classList->mAtom->GetUnicode(&class2Buf);
nsDependentString class2(class2Buf);
if (Compare(class1, class2, nsCaseInsensitiveStringComparator()) == 0)
if (class1.Equals(class2, nsCaseInsensitiveStringComparator()))
return NS_OK;
classList = classList->mNext;
} while (classList);