summaryrefslogtreecommitdiff
path: root/protocols/IcqOscarJ/src/icq_rates.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/IcqOscarJ/src/icq_rates.cpp')
-rw-r--r--protocols/IcqOscarJ/src/icq_rates.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/IcqOscarJ/src/icq_rates.cpp b/protocols/IcqOscarJ/src/icq_rates.cpp
index 17b4db82cd..b2d3ee2823 100644
--- a/protocols/IcqOscarJ/src/icq_rates.cpp
+++ b/protocols/IcqOscarJ/src/icq_rates.cpp
@@ -325,8 +325,8 @@ void rates_queue::handleDelay()
void rates_queue::cleanup()
{
mir_cslock l(csLists);
- for (int i = 0; i < lstPending.getCount(); i++)
- delete lstPending[i];
+ for (auto &it : lstPending)
+ delete it;
lstPending.destroy();
}