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;
|
||||
}
|
||||
|
||||
static void winrt_event_token_init (winrtEventToken *self)
|
||||
static void winrt_event_token_init (winrtEventToken */*self*/)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -73,4 +73,4 @@ gint64 winrt_event_token_get_value(winrtEventToken* self)
|
|||
g_return_val_if_fail (WINRT_IS_EVENT_TOKEN (self), 0);
|
||||
|
||||
return winrt_event_token_get_internal(self)->value;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
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);
|
||||
|
||||
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::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);
|
||||
|
||||
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);
|
||||
});
|
||||
|
@ -312,7 +312,7 @@ winrtEventToken* winrt_windows_ui_notifications_toast_notification_Dismissed(win
|
|||
winrtWindowsUINotificationsToastNotificationPrivate* priv = WINRT_WINDOWS_UI_NOTIFICATION_TOAST_NOTIFICATION_GET_PRIVATE(self);
|
||||
|
||||
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();
|
||||
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;
|
||||
}
|
||||
|
||||
static void winrt_windows_ui_notifications_toast_notifier_init (winrtWindowsUINotificationsToastNotifier *self)
|
||||
static void winrt_windows_ui_notifications_toast_notifier_init (winrtWindowsUINotificationsToastNotifier */*self*/)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -105,4 +105,4 @@ void winrt_windows_ui_notifications_toast_notifier_Hide(winrtWindowsUINotificati
|
|||
g_return_if_fail (WINRT_IS_WINDOWS_UI_NOTIFICATIONS_TOAST_NOTIFICATION (toast_notification));
|
||||
|
||||
winrt_windows_ui_notifications_toast_notifier_get_internal(self)->Hide(*winrt_windows_ui_notifications_toast_notification_get_internal(toast_notification));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue