From 987eb672d5eeea02460ee6af0eb82d75ad42ab99 Mon Sep 17 00:00:00 2001 From: mjk Date: Sat, 20 Mar 2021 21:41:34 +0000 Subject: [PATCH] fix / work around uninitialized fields warnings --- .../api/src/gobject/winrt-toast-notification.cpp | 8 ++++---- plugins/windows-notification/api/src/win32.cpp | 2 +- 2 files changed, 5 insertions(+), 5 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 21404f16..3069660f 100644 --- a/plugins/windows-notification/api/src/gobject/winrt-toast-notification.cpp +++ b/plugins/windows-notification/api/src/gobject/winrt-toast-notification.cpp @@ -70,9 +70,9 @@ struct _winrtWindowsUINotificationsToastNotificationPrivate { winrt::Windows::UI::Notifications::ToastNotification data; - std::list>> activated; - std::list>> failed; - std::list>> dismissed; + std::list>> activated{}; + std::list>> failed{}; + std::list>> dismissed{}; }; typedef struct @@ -375,4 +375,4 @@ void winrt_windows_ui_notifications_toast_notification_RemoveDismissed(winrtWind } return false; }); -} \ No newline at end of file +} diff --git a/plugins/windows-notification/api/src/win32.cpp b/plugins/windows-notification/api/src/win32.cpp index 7907ef24..de7ab433 100644 --- a/plugins/windows-notification/api/src/win32.cpp +++ b/plugins/windows-notification/api/src/win32.cpp @@ -90,7 +90,7 @@ extern "C" gboolean IsWindows10() noexcept { - RTL_OSVERSIONINFOW rovi = { 0 }; + RTL_OSVERSIONINFOW rovi = {}; rovi.dwOSVersionInfoSize = sizeof(rovi); if (S_OK == RtlGetVersion(&rovi)) {