summaryrefslogtreecommitdiff
path: root/protocols/MSN/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-01-30 20:18:37 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-01-30 20:18:46 +0300
commit4c281b28075dfa69d8cc2301b06492fbddb62f24 (patch)
treeb788f37caaff5063fd36eecad191d2a5582be12c /protocols/MSN/src
parenta243c59835182e2a1fa91d9c7bd80defea88e4e8 (diff)
LIST::remove + LIST::indexOf() combination removed with LIST::removeItem
Diffstat (limited to 'protocols/MSN/src')
-rw-r--r--protocols/MSN/src/msn_chat.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/protocols/MSN/src/msn_chat.cpp b/protocols/MSN/src/msn_chat.cpp
index 4cbdab32b4..bb6c4c3e99 100644
--- a/protocols/MSN/src/msn_chat.cpp
+++ b/protocols/MSN/src/msn_chat.cpp
@@ -121,10 +121,9 @@ void CMsnProto::MSN_ChatStart(ezxml_t xmli)
}
// Remove contacts not on list (not tagged)
- auto T = info->mJoinedContacts.rev_iter();
- for (auto &it : T) {
+ for (auto &it : info->mJoinedContacts.rev_iter()) {
if (!it->btag)
- info->mJoinedContacts.remove(T.indexOf(&it));
+ info->mJoinedContacts.removeItem(&it);
else
it->btag = 0;
}