Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: src/FilterEngine.cpp

Issue 29419629: Issue 5164 - Remove NotificationPtr (Closed) Base URL: https://hg.adblockplus.org/libadblockplus/
Patch Set: Added move assignment operator. Created April 24, 2017, 7:08 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/FilterEngine.cpp
===================================================================
--- a/src/FilterEngine.cpp
+++ b/src/FilterEngine.cpp
@@ -549,17 +549,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));

Powered by Google App Engine
This is Rietveld