diff --git a/test-app/runtime/src/main/cpp/MetadataNode.cpp b/test-app/runtime/src/main/cpp/MetadataNode.cpp index 5096abffd..37aa46e5a 100644 --- a/test-app/runtime/src/main/cpp/MetadataNode.cpp +++ b/test-app/runtime/src/main/cpp/MetadataNode.cpp @@ -1984,7 +1984,7 @@ void MetadataNode::EnableProfiler(bool enableProfiler) { s_profilerEnabled = enableProfiler; } -bool MetadataNode::IsJavascriptKeyword(std::string word) { +bool MetadataNode::IsJavascriptKeyword(const std::string &word) { static set keywords; if (keywords.empty()) { diff --git a/test-app/runtime/src/main/cpp/MetadataNode.h b/test-app/runtime/src/main/cpp/MetadataNode.h index a5aa9b7c1..71e7bfc05 100644 --- a/test-app/runtime/src/main/cpp/MetadataNode.h +++ b/test-app/runtime/src/main/cpp/MetadataNode.h @@ -76,7 +76,7 @@ class MetadataNode { MetadataNode(MetadataTreeNode* treeNode); - static bool IsJavascriptKeyword(std::string word); + static bool IsJavascriptKeyword(const std::string &word); v8::Local CreatePackageObject(v8::Isolate* isolate); v8::Local GetConstructorFunction(v8::Isolate* isolate);