Index: src/FilterEngine.cpp |
=================================================================== |
--- a/src/FilterEngine.cpp |
+++ b/src/FilterEngine.cpp |
@@ -527,17 +527,18 @@ |
{ |
if (params.size() < 1) |
return; |
if (!params[0].IsObject()) |
{ |
return; |
} |
- callback(NotificationPtr(new Notification(JsValue(params[0])))); |
+ auto notification = Notification(JsValue(params[0])); |
+ callback(notification); |
} |
int FilterEngine::CompareVersions(const std::string& v1, const std::string& v2) const |
{ |
JsValueList params; |
params.push_back(jsEngine->NewValue(v1)); |
params.push_back(jsEngine->NewValue(v2)); |