summaryrefslogtreecommitdiff
path: root/plugins/HistorySweeperLight
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/HistorySweeperLight')
-rw-r--r--plugins/HistorySweeperLight/src/historysweeperlight.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/HistorySweeperLight/src/historysweeperlight.cpp b/plugins/HistorySweeperLight/src/historysweeperlight.cpp
index d74dbfeadc..7e32d8aa4e 100644
--- a/plugins/HistorySweeperLight/src/historysweeperlight.cpp
+++ b/plugins/HistorySweeperLight/src/historysweeperlight.cpp
@@ -225,10 +225,9 @@ int OnWindowEvent(WPARAM, LPARAM lParam)
SweepHistoryFromContact(msgEvData->hContact, Criteria, TRUE);
}
- auto T = g_hWindows.rev_iter();
- for (auto &it : T)
+ for (auto &it : g_hWindows.rev_iter())
if (it == PVOID(msgEvData->hContact))
- g_hWindows.remove(T.indexOf(&it));
+ g_hWindows.removeItem(&it);
break;
}