Skip to content

Commit cfe59a9

Browse files
authored
Merge pull request #28 from sraboy/minor_fixes
Minor Fixes
2 parents 0a24843 + 023be57 commit cfe59a9

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/wintoastlib.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ INT64 WinToast::showToast(_In_ const WinToastTemplate& toast, _In_ IWinToastHan
637637
return FAILED(hr) ? -1 : id;
638638
}
639639

640-
ComPtr<IToastNotifier> WinToast::notifier(bool* succeded) const {
640+
ComPtr<IToastNotifier> WinToast::notifier(_In_ bool* succeded) const {
641641
ComPtr<IToastNotificationManagerStatics> notificationManager;
642642
ComPtr<IToastNotifier> notifier;
643643
HRESULT hr = DllImporter::Wrap_GetActivationFactory(WinToastStringWrapper(RuntimeClass_Windows_UI_Notifications_ToastNotificationManager).Get(), &notificationManager);
@@ -657,9 +657,9 @@ bool WinToast::hideToast(_In_ INT64 id) {
657657
const bool find = _buffer.find(id) != _buffer.end();
658658
if (find) {
659659
bool succeded = false;
660-
ComPtr<IToastNotifier> not = notifier(&succeded);
660+
ComPtr<IToastNotifier> notify = notifier(&succeded);
661661
if (succeded) {
662-
not->Hide(_buffer[id].Get());
662+
notify->Hide(_buffer[id].Get());
663663
}
664664
_buffer.erase(id);
665665
}
@@ -668,11 +668,11 @@ bool WinToast::hideToast(_In_ INT64 id) {
668668

669669
void WinToast::clear() {
670670
bool succeded = false;
671-
ComPtr<IToastNotifier> not = notifier(&succeded);
671+
ComPtr<IToastNotifier> notify = notifier(&succeded);
672672
if (succeded) {
673673
auto end = _buffer.end();
674674
for (auto it = _buffer.begin(); it != end; ++it) {
675-
not->Hide(it->second.Get());
675+
notify->Hide(it->second.Get());
676676
}
677677
}
678678
_buffer.clear();
@@ -896,7 +896,7 @@ void WinToastTemplate::setAttributionText(_In_ const std::wstring& attributionTe
896896
_attributionText = attributionText;
897897
}
898898

899-
void WinToastTemplate::addAction(const std::wstring & label)
899+
void WinToastTemplate::addAction(_In_ const std::wstring & label)
900900
{
901901
_actions.push_back(label);
902902
}

src/wintoastlib.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ namespace WinToastLib {
138138
HRESULT setTextFieldHelper(_In_ IXmlDocument *xml, _In_ const std::wstring& text, _In_ int pos);
139139
HRESULT setAttributionTextFieldHelper(_In_ IXmlDocument *xml, _In_ const std::wstring& text);
140140
HRESULT addActionHelper(_In_ IXmlDocument *xml, _In_ const std::wstring& action, _In_ const std::wstring& arguments);
141-
ComPtr<IToastNotifier> WinToast::notifier(_In_ bool* succeded) const;
141+
ComPtr<IToastNotifier> notifier(_In_ bool* succeded) const;
142142
};
143143
}
144144
#endif // WINTOASTLIB_H

0 commit comments

Comments
 (0)