From 8988b77d5777703fa942ac6e8e80df49f40d1e36 Mon Sep 17 00:00:00 2001 From: mjk Date: Sat, 20 Mar 2021 21:50:13 +0000 Subject: [PATCH] don't use FALSE as a null pointer constant --- .../api/src/gobject/winrt-toast-notification.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/windows-notification/api/src/gobject/winrt-toast-notification.cpp b/plugins/windows-notification/api/src/gobject/winrt-toast-notification.cpp index 3069660f..2ec808e0 100644 --- a/plugins/windows-notification/api/src/gobject/winrt-toast-notification.cpp +++ b/plugins/windows-notification/api/src/gobject/winrt-toast-notification.cpp @@ -211,7 +211,7 @@ void winrt_windows_ui_notifications_toast_notification_SetTag(winrtWindowsUINoti */ char* winrt_windows_ui_notifications_toast_notification_GetTag(winrtWindowsUINotificationsToastNotification* self) { - g_return_val_if_fail (WINRT_IS_WINDOWS_UI_NOTIFICATIONS_TOAST_NOTIFICATION (self), FALSE); + g_return_val_if_fail (WINRT_IS_WINDOWS_UI_NOTIFICATIONS_TOAST_NOTIFICATION (self), nullptr); return wsview_to_char(winrt_windows_ui_notifications_toast_notification_get_internal(self)->Tag()); } @@ -233,7 +233,7 @@ void winrt_windows_ui_notifications_toast_notification_SetGroup(winrtWindowsUINo */ char* winrt_windows_ui_notifications_toast_notification_GetGroup(winrtWindowsUINotificationsToastNotification* self) { - g_return_val_if_fail (WINRT_IS_WINDOWS_UI_NOTIFICATIONS_TOAST_NOTIFICATION (self), FALSE); + g_return_val_if_fail (WINRT_IS_WINDOWS_UI_NOTIFICATIONS_TOAST_NOTIFICATION (self), nullptr); return wsview_to_char(winrt_windows_ui_notifications_toast_notification_get_internal(self)->Group()); }