Index: src/JsEngine.cpp |
diff --git a/src/JsEngine.cpp b/src/JsEngine.cpp |
index 3aaaeb9cd0924cc90503c6e869309e56ef3d2bf9..71be92f3735f5036adba4dbb03a64378ad98430f 100644 |
--- a/src/JsEngine.cpp |
+++ b/src/JsEngine.cpp |
@@ -187,7 +187,7 @@ void AdblockPlus::JsEngine::RemoveEventCallback(const std::string& eventName) |
eventCallbacks.erase(eventName); |
} |
-void AdblockPlus::JsEngine::TriggerEvent(const std::string& eventName, const AdblockPlus::JsValueList& params) |
+void AdblockPlus::JsEngine::TriggerEvent(const std::string& eventName, AdblockPlus::JsValueList&& params) |
{ |
EventCallback callback; |
{ |
@@ -197,7 +197,7 @@ void AdblockPlus::JsEngine::TriggerEvent(const std::string& eventName, const Adb |
return; |
callback = it->second; |
} |
- callback(params); |
+ callback(move(params)); |
} |
void AdblockPlus::JsEngine::Gc() |