comment out unused arguments [-Wunused-parameter]
This commit is contained in:
parent
934b492357
commit
c40775b7da
|
@ -26,7 +26,7 @@ static void winrt_event_token_class_init (winrtEventTokenClass* klass)
|
||||||
gobject_class->finalize = winrt_event_token_finalize;
|
gobject_class->finalize = winrt_event_token_finalize;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void winrt_event_token_init (winrtEventToken *self)
|
static void winrt_event_token_init (winrtEventToken */*self*/)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -130,7 +130,7 @@ static void winrt_windows_ui_notifications_toast_notification_class_init (winrtW
|
||||||
gobject_class->finalize = winrt_windows_ui_notifications_toast_notification_finalize;
|
gobject_class->finalize = winrt_windows_ui_notifications_toast_notification_finalize;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void winrt_windows_ui_notifications_toast_notification_init (winrtWindowsUINotificationsToastNotification *self)
|
static void winrt_windows_ui_notifications_toast_notification_init (winrtWindowsUINotificationsToastNotification */*self*/)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -251,7 +251,7 @@ winrtEventToken* winrt_windows_ui_notifications_toast_notification_Activated(win
|
||||||
winrtWindowsUINotificationsToastNotificationPrivate* priv = WINRT_WINDOWS_UI_NOTIFICATION_TOAST_NOTIFICATION_GET_PRIVATE(self);
|
winrtWindowsUINotificationsToastNotificationPrivate* priv = WINRT_WINDOWS_UI_NOTIFICATION_TOAST_NOTIFICATION_GET_PRIVATE(self);
|
||||||
|
|
||||||
auto callback_data = std::make_shared<Callback<NotificationCallbackActivated>>(callback, context, free);
|
auto callback_data = std::make_shared<Callback<NotificationCallbackActivated>>(callback, context, free);
|
||||||
auto token = priv->notification->data.Activated([=](auto sender, winrt::Windows::Foundation::IInspectable inspectable)
|
auto token = priv->notification->data.Activated([=](auto /*sender*/, winrt::Windows::Foundation::IInspectable inspectable)
|
||||||
{
|
{
|
||||||
std::wstring arguments;
|
std::wstring arguments;
|
||||||
std::vector<std::tuple<std::wstring, std::wstring>> user_input;
|
std::vector<std::tuple<std::wstring, std::wstring>> user_input;
|
||||||
|
@ -293,7 +293,7 @@ winrtEventToken* winrt_windows_ui_notifications_toast_notification_Failed(winrtW
|
||||||
winrtWindowsUINotificationsToastNotificationPrivate* priv = WINRT_WINDOWS_UI_NOTIFICATION_TOAST_NOTIFICATION_GET_PRIVATE(self);
|
winrtWindowsUINotificationsToastNotificationPrivate* priv = WINRT_WINDOWS_UI_NOTIFICATION_TOAST_NOTIFICATION_GET_PRIVATE(self);
|
||||||
|
|
||||||
auto callback_data = std::make_shared<Callback<NotificationCallbackFailed>>(callback, context, free);
|
auto callback_data = std::make_shared<Callback<NotificationCallbackFailed>>(callback, context, free);
|
||||||
auto token = priv->notification->data.Failed([=](auto sender, auto toastFailedEventArgs)
|
auto token = priv->notification->data.Failed([=](auto /*sender*/, auto /*toastFailedEventArgs*/)
|
||||||
{
|
{
|
||||||
callback_data->callback(callback_data->context);
|
callback_data->callback(callback_data->context);
|
||||||
});
|
});
|
||||||
|
@ -312,7 +312,7 @@ winrtEventToken* winrt_windows_ui_notifications_toast_notification_Dismissed(win
|
||||||
winrtWindowsUINotificationsToastNotificationPrivate* priv = WINRT_WINDOWS_UI_NOTIFICATION_TOAST_NOTIFICATION_GET_PRIVATE(self);
|
winrtWindowsUINotificationsToastNotificationPrivate* priv = WINRT_WINDOWS_UI_NOTIFICATION_TOAST_NOTIFICATION_GET_PRIVATE(self);
|
||||||
|
|
||||||
auto callback_data = std::make_shared<Callback<NotificationCallbackDismissed>>(callback, context, free);
|
auto callback_data = std::make_shared<Callback<NotificationCallbackDismissed>>(callback, context, free);
|
||||||
auto token = priv->notification->data.Dismissed([=](auto sender, winrt::Windows::UI::Notifications::ToastDismissedEventArgs dismissed)
|
auto token = priv->notification->data.Dismissed([=](auto /*sender*/, winrt::Windows::UI::Notifications::ToastDismissedEventArgs dismissed)
|
||||||
{
|
{
|
||||||
auto reason = dismissed.Reason();
|
auto reason = dismissed.Reason();
|
||||||
callback_data->callback(static_cast<winrtWindowsUINotificationsToastDismissalReason>(reason), callback_data->context);
|
callback_data->callback(static_cast<winrtWindowsUINotificationsToastDismissalReason>(reason), callback_data->context);
|
||||||
|
|
|
@ -37,7 +37,7 @@ static void winrt_windows_ui_notifications_toast_notifier_class_init (winrtWindo
|
||||||
gobject_class->finalize = winrt_windows_ui_notifications_toast_notifier_finalize;
|
gobject_class->finalize = winrt_windows_ui_notifications_toast_notifier_finalize;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void winrt_windows_ui_notifications_toast_notifier_init (winrtWindowsUINotificationsToastNotifier *self)
|
static void winrt_windows_ui_notifications_toast_notifier_init (winrtWindowsUINotificationsToastNotifier */*self*/)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue