Skip to content

Commit

Permalink
Rename not var, reserved keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
sraboy committed Feb 12, 2018
1 parent a4b71e3 commit 023be57
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/wintoastlib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -657,9 +657,9 @@ bool WinToast::hideToast(_In_ INT64 id) {
const bool find = _buffer.find(id) != _buffer.end();
if (find) {
bool succeded = false;
ComPtr<IToastNotifier> not = notifier(&succeded);
ComPtr<IToastNotifier> notify = notifier(&succeded);
if (succeded) {
not->Hide(_buffer[id].Get());
notify->Hide(_buffer[id].Get());
}
_buffer.erase(id);
}
Expand All @@ -668,11 +668,11 @@ bool WinToast::hideToast(_In_ INT64 id) {

void WinToast::clear() {
bool succeded = false;
ComPtr<IToastNotifier> not = notifier(&succeded);
ComPtr<IToastNotifier> notify = notifier(&succeded);
if (succeded) {
auto end = _buffer.end();
for (auto it = _buffer.begin(); it != end; ++it) {
not->Hide(it->second.Get());
notify->Hide(it->second.Get());
}
}
_buffer.clear();
Expand Down

0 comments on commit 023be57

Please sign in to comment.