mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-05 12:05:22 +00:00
Don't construct unneeded autostring. Bug 362316, r+sr=sicking
This commit is contained in:
parent
a09f17bab9
commit
55c90dbd0d
@ -833,10 +833,9 @@ nsAttrValue::ParseEnumValue(const nsAString& aValue,
|
||||
{
|
||||
ResetIfSet();
|
||||
|
||||
nsAutoString val(aValue);
|
||||
while (aTable->tag) {
|
||||
if (aCaseSensitive ? val.EqualsASCII(aTable->tag) :
|
||||
val.EqualsIgnoreCase(aTable->tag)) {
|
||||
if (aCaseSensitive ? aValue.EqualsASCII(aTable->tag) :
|
||||
aValue.LowerCaseEqualsASCII(aTable->tag)) {
|
||||
|
||||
// Find index of EnumTable
|
||||
PRInt16 index = sEnumTableArray->IndexOf(aTable);
|
||||
|
Loading…
Reference in New Issue
Block a user