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