Index: compiled/filter/ElemHideBase.cpp |
=================================================================== |
--- a/compiled/filter/ElemHideBase.cpp |
+++ b/compiled/filter/ElemHideBase.cpp |
@@ -154,17 +154,17 @@ |
} |
return result; |
} |
} |
OwnedString ElemHideBase::GetSelector() const |
{ |
- DependentString selector = mData.GetSelector(mText); |
+ const DependentString selector = mData.GetSelector(mText); |
String::size_type replacementCount = 0; |
for (String::size_type i = 0; i < selector.length(); i++) |
if (selector[i] == '}' || selector[i] == '{') |
replacementCount++; |
if (replacementCount) |
return EscapeCurlies(replacementCount, selector); |
return OwnedString(selector); |