From 4c281b28075dfa69d8cc2301b06492fbddb62f24 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 30 Jan 2020 20:18:37 +0300 Subject: LIST::remove + LIST::indexOf() combination removed with LIST::removeItem --- plugins/TabSRMM/src/eventpopups.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'plugins/TabSRMM') diff --git a/plugins/TabSRMM/src/eventpopups.cpp b/plugins/TabSRMM/src/eventpopups.cpp index 408e181c4e..168d1edd2e 100644 --- a/plugins/TabSRMM/src/eventpopups.cpp +++ b/plugins/TabSRMM/src/eventpopups.cpp @@ -50,14 +50,13 @@ static PLUGIN_DATAT* PU_GetByContact(const MCONTACT hContact) */ static void PU_CleanUp() { - auto T = arPopupList.rev_iter(); - for (auto &p : T) { + for (auto &p : arPopupList.rev_iter()) { if (p->hContact != 0) continue; mir_free(p->eventData); mir_free(p); - arPopupList.remove(T.indexOf(&p)); + arPopupList.removeItem(&p); } } -- cgit v1.2.3