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: Updated following review feedback Created April 21, 2017, 4:29 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
@@ -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));
« no previous file with comments | « include/AdblockPlus/Notification.h ('k') | test/Notification.cpp » ('j') | test/Notification.cpp » ('J')

Powered by Google App Engine
This is Rietveld