Index: src/Utils.cpp |
=================================================================== |
--- a/src/Utils.cpp |
+++ b/src/Utils.cpp |
@@ -29,17 +29,17 @@ |
std::string Utils::Slurp(std::istream& stream) |
{ |
std::stringstream content; |
content << stream.rdbuf(); |
return content.str(); |
} |
-std::string Utils::FromV8String(v8::Handle<v8::Value> value) |
+std::string Utils::FromV8String(const v8::Handle<v8::Value>& value) |
{ |
v8::String::Utf8Value stringValue(value); |
if (stringValue.length()) |
return std::string(*stringValue, stringValue.length()); |
else |
return std::string(); |
} |