diff options
Diffstat (limited to 'plugins/Toaster/src/toast_event_handler.cpp')
-rw-r--r-- | plugins/Toaster/src/toast_event_handler.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/plugins/Toaster/src/toast_event_handler.cpp b/plugins/Toaster/src/toast_event_handler.cpp index a3240b1490..4f3d5e91f9 100644 --- a/plugins/Toaster/src/toast_event_handler.cpp +++ b/plugins/Toaster/src/toast_event_handler.cpp @@ -53,24 +53,21 @@ IFACEMETHODIMP ToastEventHandler::Invoke(_In_ IToastNotification * /*sender*/, _ if (_callback != nullptr)
_callback(_arg);
- callbackArg *cb = (callbackArg*)_arg;
mir_cslock lck(csNotifications);
- lstNotifications.remove(cb->notification);
+ lstNotifications.remove(((callbackArg*)_arg)->notification);
return S_OK;
}
IFACEMETHODIMP ToastEventHandler::Invoke(_In_ IToastNotification* /* sender */, _In_ IToastDismissedEventArgs* /*e*/)
{
- callbackArg *cb = (callbackArg*)_arg;
mir_cslock lck(csNotifications);
- lstNotifications.remove(cb->notification);
+ lstNotifications.remove(((callbackArg*)_arg)->notification);
return S_OK;
}
IFACEMETHODIMP ToastEventHandler::Invoke(_In_ IToastNotification* /* sender */, _In_ IToastFailedEventArgs* /*e*/ )
{
- callbackArg *cb = (callbackArg*)_arg;
mir_cslock lck(csNotifications);
- lstNotifications.remove(cb->notification);
+ lstNotifications.remove(((callbackArg*)_arg)->notification);
return S_OK;
}
\ No newline at end of file |