fix / work around uninitialized fields warnings

This commit is contained in:
mjk 2021-03-20 21:41:34 +00:00 committed by LAGonauta
parent 1698d15f7d
commit 987eb672d5
2 changed files with 5 additions and 5 deletions

View file

@ -70,9 +70,9 @@ struct _winrtWindowsUINotificationsToastNotificationPrivate
{ {
winrt::Windows::UI::Notifications::ToastNotification data; winrt::Windows::UI::Notifications::ToastNotification data;
std::list<std::shared_ptr<Callback<NotificationCallbackActivated>>> activated; std::list<std::shared_ptr<Callback<NotificationCallbackActivated>>> activated{};
std::list<std::shared_ptr<Callback<NotificationCallbackFailed>>> failed; std::list<std::shared_ptr<Callback<NotificationCallbackFailed>>> failed{};
std::list<std::shared_ptr<Callback<NotificationCallbackDismissed>>> dismissed; std::list<std::shared_ptr<Callback<NotificationCallbackDismissed>>> dismissed{};
}; };
typedef struct typedef struct
@ -375,4 +375,4 @@ void winrt_windows_ui_notifications_toast_notification_RemoveDismissed(winrtWind
} }
return false; return false;
}); });
} }

View file

@ -90,7 +90,7 @@ extern "C"
gboolean IsWindows10() noexcept gboolean IsWindows10() noexcept
{ {
RTL_OSVERSIONINFOW rovi = { 0 }; RTL_OSVERSIONINFOW rovi = {};
rovi.dwOSVersionInfoSize = sizeof(rovi); rovi.dwOSVersionInfoSize = sizeof(rovi);
if (S_OK == RtlGetVersion(&rovi)) if (S_OK == RtlGetVersion(&rovi))
{ {