[hardening] fix double const& declaration
This commit is contained in:
@@ -41,7 +41,7 @@ private:
|
||||
|
||||
bool parseBoolean(JSVal value);
|
||||
std::string parseString(JSVal value);
|
||||
const JSVal& replaceConstant(const JSVal& value);
|
||||
JSVal replaceConstant(JSVal value);
|
||||
std::vector<FunctionProperty> parseArray(JSVal value, uint16_t expected_count);
|
||||
Color parseColor(JSVal value);
|
||||
Value parseValue(JSVal value);
|
||||
|
||||
@@ -379,7 +379,7 @@ std::string StyleParser::parseString(JSVal value) {
|
||||
return { value.GetString(), value.GetStringLength() };
|
||||
}
|
||||
|
||||
const JSVal& StyleParser::replaceConstant(const JSVal& value) {
|
||||
JSVal StyleParser::replaceConstant(JSVal value) {
|
||||
if (value.IsString()) {
|
||||
const std::string string_value { value.GetString(), value.GetStringLength() };
|
||||
auto it = constants.find(string_value);
|
||||
|
||||
Reference in New Issue
Block a user