build fix for wxUSE_WINRT==0

This commit is contained in:
Paul Cornett
2017-01-02 20:23:33 -08:00
parent e777bd9ebd
commit 0a5f6e07f5

View File

@@ -341,15 +341,25 @@ bool wxNotificationMessage::MSWUseToasts(
const wxString& shortcutPath, const wxString& shortcutPath,
const wxString& appId) const wxString& appId)
{ {
#if wxUSE_WINRT
return wxToastNotificationHelper::UseToasts(shortcutPath, appId); return wxToastNotificationHelper::UseToasts(shortcutPath, appId);
#else
wxUnusedVar(shortcutPath);
wxUnusedVar(appId);
return false;
#endif
} }
void wxNotificationMessage::Init() void wxNotificationMessage::Init()
{ {
#if wxUSE_WINRT
if ( wxToastNotificationHelper::IsEnabled() ) if ( wxToastNotificationHelper::IsEnabled() )
m_impl = wxToastNotificationHelper::CreateInstance(this); m_impl = wxToastNotificationHelper::CreateInstance(this);
else else
#endif
{
m_impl = new wxBalloonNotifMsgImpl(this); m_impl = new wxBalloonNotifMsgImpl(this);
}
} }
#endif // wxUSE_NOTIFICATION_MESSAGE && wxUSE_TASKBARICON #endif // wxUSE_NOTIFICATION_MESSAGE && wxUSE_TASKBARICON