зеркало из https://github.com/mozilla/gecko-dev.git
Don't construct unneeded autostring. Bug 362316, r+sr=sicking
This commit is contained in:
Родитель
a09f17bab9
Коммит
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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче