From 477a6ea70d0bb1b1dfe9cbd9a15b6dad0284ddeb Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 21 Feb 2018 18:40:03 +0300 Subject: all another C++'11 iterators --- plugins/SeenPlugin/src/utils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/SeenPlugin/src') diff --git a/plugins/SeenPlugin/src/utils.cpp b/plugins/SeenPlugin/src/utils.cpp index ef90cd1273..203c2ed258 100644 --- a/plugins/SeenPlugin/src/utils.cpp +++ b/plugins/SeenPlugin/src/utils.cpp @@ -47,8 +47,8 @@ void LoadWatchedProtos() void UnloadWatchedProtos() { - for (int i = 0; i < arWatchedProtos.getCount(); i++) - mir_free(arWatchedProtos[i]); + for (auto &it : arWatchedProtos) + mir_free(it); arWatchedProtos.destroy(); } -- cgit v1.2.3