From b6de8047c1113030b64c81e58c2ba37c062639ae Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 21 Feb 2018 18:37:12 +0300 Subject: Skype: C++'11 iterators --- protocols/SkypeWeb/src/skype_proto.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols/SkypeWeb/src/skype_proto.h') diff --git a/protocols/SkypeWeb/src/skype_proto.h b/protocols/SkypeWeb/src/skype_proto.h index 13733383b0..5bdd124995 100644 --- a/protocols/SkypeWeb/src/skype_proto.h +++ b/protocols/SkypeWeb/src/skype_proto.h @@ -367,8 +367,8 @@ private: template __inline static void FreeList(const LIST &lst) { - for (int i = 0; i < lst.getCount(); i++) - mir_free(lst[i]); + for (auto &it : lst) + mir_free(it); } __forceinline bool IsOnline() const -- cgit v1.2.3