Index: src/Notification.cpp |
=================================================================== |
--- a/src/Notification.cpp |
+++ b/src/Notification.cpp |
@@ -88,20 +88,19 @@ std::vector<std::string> Notification::G |
{ |
std::vector<std::string> retValue; |
JsValuePtr jsLinks = GetProperty("links"); |
if (!jsLinks->IsArray()) |
{ |
return retValue; |
} |
JsValueList urlLinksList = jsLinks->AsList(); |
- for (JsValueList::const_iterator linkIterator = urlLinksList.begin(); |
- linkIterator != urlLinksList.end(); ++linkIterator) |
+ for (const auto& link : urlLinksList) |
{ |
- retValue.push_back((*linkIterator)->AsString()); |
+ retValue.push_back(link->AsString()); |
} |
return retValue; |
} |
void Notification::MarkAsShown() |
{ |
jsEngine->Evaluate("API.markNotificationAsShown")->Call(*GetProperty("id")); |
-} |
+} |