From 95ce21d8512af00a4c5f607091a459b789f79b79 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 21 Feb 2018 18:30:20 +0300 Subject: mmap: C++'11 iterators --- plugins/Db3x_mmap/src/dbcontacts.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'plugins/Db3x_mmap/src/dbcontacts.cpp') diff --git a/plugins/Db3x_mmap/src/dbcontacts.cpp b/plugins/Db3x_mmap/src/dbcontacts.cpp index 4ff87d4efe..f7f913368d 100644 --- a/plugins/Db3x_mmap/src/dbcontacts.cpp +++ b/plugins/Db3x_mmap/src/dbcontacts.cpp @@ -420,9 +420,8 @@ void CDb3Mmap::FillContacts() DeleteContactSetting(hh, META_PROTO, "MetaLink"); } - for (int i = 0; i < arMetas.getCount(); i++) { - COldMeta &p = arMetas[i]; - DBCachedContact *ccMeta = p.cc; + for (auto &p : arMetas) { + DBCachedContact *ccMeta = p->cc; MCONTACT hContact = ccMeta->contactID; // we don't need it anymore -- cgit v1.2.3