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

case-insensitive Equals().  Bug 115289, r=alecf, sr=jag
This commit is contained in:
bzbarsky@mit.edu
2002-02-05 02:03:07 +00:00
parent 3a85ef469e
commit 3f6adfa582
53 changed files with 232 additions and 238 deletions
+1 -1
View File
@@ -1203,7 +1203,7 @@ NS_IMETHODIMP CViewSourceHTML::HandleToken(CToken* aToken,nsIParser* aParser) {
{
nsAutoString theStr;
theStr.Assign(aToken->GetStringValue());
if(Compare(theStr, NS_LITERAL_STRING("XI"), nsCaseInsensitiveStringComparator()) != 0) {
if(!theStr.Equals(NS_LITERAL_STRING("XI"), nsCaseInsensitiveStringComparator())) {
PRUnichar theChar=theStr.CharAt(0);
if((nsCRT::IsAsciiDigit(theChar)) || ('X'==theChar) || ('x'==theChar)){
theStr.Assign(NS_LITERAL_STRING("#") + theStr);