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;
std::list<std::shared_ptr<Callback<NotificationCallbackActivated>>> activated;
std::list<std::shared_ptr<Callback<NotificationCallbackFailed>>> failed;
std::list<std::shared_ptr<Callback<NotificationCallbackDismissed>>> dismissed;
std::list<std::shared_ptr<Callback<NotificationCallbackActivated>>> activated{};
std::list<std::shared_ptr<Callback<NotificationCallbackFailed>>> failed{};
std::list<std::shared_ptr<Callback<NotificationCallbackDismissed>>> dismissed{};
};
typedef struct

View file

@ -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))
{