Bug 104158: Use NS_LITERAL_STRING instead of XXXWithConversion("..."). r=bryner, rs=alecf
git-svn-id: svn://10.0.0.236/trunk@110579 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -981,10 +981,10 @@ nsresult nsHTMLTokenizer::ConsumeSpecialMarkup(PRUnichar aChar,CToken*& aToken,n
|
||||
if(theIndex==kNotFound) {
|
||||
if('['==theBufCopy.CharAt(0)) {
|
||||
aToken = theAllocator->CreateTokenOfType(eToken_cdatasection,eHTMLTag_comment);
|
||||
} else if (theBufCopy.EqualsWithConversion("ELEMENT",PR_FALSE,7) ||
|
||||
theBufCopy.EqualsWithConversion("ATTLIST",PR_FALSE,7) ||
|
||||
theBufCopy.EqualsWithConversion("ENTITY",PR_FALSE,6) ||
|
||||
theBufCopy.EqualsWithConversion("NOTATION",PR_FALSE,8)) {
|
||||
} else if (Substring(theBufCopy, 0, 7).Equals(NS_LITERAL_STRING("ELEMENT")) ||
|
||||
Substring(theBufCopy, 0, 7).Equals(NS_LITERAL_STRING("ATTLIST")) ||
|
||||
Substring(theBufCopy, 0, 6).Equals(NS_LITERAL_STRING("ENTITY")) ||
|
||||
Substring(theBufCopy, 0, 8).Equals(NS_LITERAL_STRING("NOTATION"))) {
|
||||
aToken = theAllocator->CreateTokenOfType(eToken_markupDecl,eHTMLTag_markupDecl);
|
||||
} else {
|
||||
aToken = theAllocator->CreateTokenOfType(eToken_comment,eHTMLTag_comment);
|
||||
|
||||
Reference in New Issue
Block a user