diff options
author | George Hazan <ghazan@miranda.im> | 2020-01-30 20:18:37 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-01-30 20:18:46 +0300 |
commit | 4c281b28075dfa69d8cc2301b06492fbddb62f24 (patch) | |
tree | b788f37caaff5063fd36eecad191d2a5582be12c /plugins/AVS/src | |
parent | a243c59835182e2a1fa91d9c7bd80defea88e4e8 (diff) |
LIST::remove + LIST::indexOf() combination removed with LIST::removeItem
Diffstat (limited to 'plugins/AVS/src')
-rw-r--r-- | plugins/AVS/src/poll.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/AVS/src/poll.cpp b/plugins/AVS/src/poll.cpp index a77db51160..e7c3caf63f 100644 --- a/plugins/AVS/src/poll.cpp +++ b/plugins/AVS/src/poll.cpp @@ -103,10 +103,9 @@ static void QueueRemove(MCONTACT hContact) {
mir_cslock lck(cs);
- auto T = queue.rev_iter();
- for (auto &it : T)
+ for (auto &it : queue.rev_iter())
if (it->hContact == hContact)
- queue.remove(T.indexOf(&it));
+ queue.removeItem(&it);
}
// Add an contact to a queue
|