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

Unified Diff: src/Notification.cpp

Issue 29417605: Issue 5034 - Part 3: Create plain JsValue instead of JsValuePtr (Closed) Base URL: https://hg.adblockplus.org/libadblockplus/
Patch Set: Pass JsEngine by ref Created April 20, 2017, 1:01 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
« no previous file with comments | « src/JsValue.cpp ('k') | src/WebRequestJsObject.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/Notification.cpp
===================================================================
--- a/src/Notification.cpp
+++ b/src/Notification.cpp
@@ -90,17 +90,17 @@
JsValue jsLinks = GetProperty("links");
if (!jsLinks.IsArray())
{
return retValue;
}
JsValueList urlLinksList = jsLinks.AsList();
for (const auto& link : urlLinksList)
{
- retValue.push_back(link->AsString());
+ retValue.push_back(link.AsString());
}
return retValue;
}
void Notification::MarkAsShown()
{
jsEngine->Evaluate("API.markNotificationAsShown")->Call(GetProperty("id"));
}
« no previous file with comments | « src/JsValue.cpp ('k') | src/WebRequestJsObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld