Index: src/Notification.cpp |
=================================================================== |
--- a/src/Notification.cpp |
+++ b/src/Notification.cpp |
@@ -64,17 +64,17 @@ |
NotificationType Notification::GetType() const |
{ |
return StringToNotificationType(GetProperty("type").AsString()); |
} |
NotificationTexts Notification::GetTexts() const |
{ |
- JsValue jsTexts = jsEngine->Evaluate("API.getNotificationTexts")->Call(*this); |
+ JsValue jsTexts = jsEngine->Evaluate("API.getNotificationTexts").Call(*this); |
NotificationTexts notificationTexts; |
JsValue jsTitle = jsTexts.GetProperty("title"); |
if (jsTitle.IsString()) |
{ |
notificationTexts.title = jsTitle.AsString(); |
} |
JsValue jsMessage = jsTexts.GetProperty("message"); |
if (jsMessage.IsString()) |
@@ -97,10 +97,10 @@ |
{ |
retValue.push_back(link.AsString()); |
} |
return retValue; |
} |
void Notification::MarkAsShown() |
{ |
- jsEngine->Evaluate("API.markNotificationAsShown")->Call(GetProperty("id")); |
+ jsEngine->Evaluate("API.markNotificationAsShown").Call(GetProperty("id")); |
} |