fix / work around uninitialized fields warnings
This commit is contained in:
parent
1698d15f7d
commit
987eb672d5
|
@ -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;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -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))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue