@@ -637,7 +637,7 @@ INT64 WinToast::showToast(_In_ const WinToastTemplate& toast, _In_ IWinToastHan
637
637
return FAILED (hr) ? -1 : id;
638
638
}
639
639
640
- ComPtr<IToastNotifier> WinToast::notifier (bool * succeded) const {
640
+ ComPtr<IToastNotifier> WinToast::notifier (_In_ bool * succeded) const {
641
641
ComPtr<IToastNotificationManagerStatics> notificationManager;
642
642
ComPtr<IToastNotifier> notifier;
643
643
HRESULT hr = DllImporter::Wrap_GetActivationFactory (WinToastStringWrapper (RuntimeClass_Windows_UI_Notifications_ToastNotificationManager).Get (), ¬ificationManager);
@@ -657,9 +657,9 @@ bool WinToast::hideToast(_In_ INT64 id) {
657
657
const bool find = _buffer.find (id) != _buffer.end ();
658
658
if (find) {
659
659
bool succeded = false ;
660
- ComPtr<IToastNotifier> not = notifier (&succeded);
660
+ ComPtr<IToastNotifier> notify = notifier (&succeded);
661
661
if (succeded) {
662
- not ->Hide (_buffer[id].Get ());
662
+ notify ->Hide (_buffer[id].Get ());
663
663
}
664
664
_buffer.erase (id);
665
665
}
@@ -668,11 +668,11 @@ bool WinToast::hideToast(_In_ INT64 id) {
668
668
669
669
void WinToast::clear () {
670
670
bool succeded = false ;
671
- ComPtr<IToastNotifier> not = notifier (&succeded);
671
+ ComPtr<IToastNotifier> notify = notifier (&succeded);
672
672
if (succeded) {
673
673
auto end = _buffer.end ();
674
674
for (auto it = _buffer.begin (); it != end; ++it) {
675
- not ->Hide (it->second .Get ());
675
+ notify ->Hide (it->second .Get ());
676
676
}
677
677
}
678
678
_buffer.clear ();
@@ -896,7 +896,7 @@ void WinToastTemplate::setAttributionText(_In_ const std::wstring& attributionTe
896
896
_attributionText = attributionText;
897
897
}
898
898
899
- void WinToastTemplate::addAction (const std::wstring & label)
899
+ void WinToastTemplate::addAction (_In_ const std::wstring & label)
900
900
{
901
901
_actions.push_back (label);
902
902
}
0 commit comments