summaryrefslogtreecommitdiff
path: root/plugins/Db3x_mmap/src/dbcontacts.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-02-21 18:30:20 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-02-21 18:40:13 +0300
commit95ce21d8512af00a4c5f607091a459b789f79b79 (patch)
treea2ac7c7c7887b4c8c80e6a59ad9cc24ce4758e91 /plugins/Db3x_mmap/src/dbcontacts.cpp
parent9ceaf3659acce44d579c2db5b29d4b48dfe893f2 (diff)
mmap: C++'11 iterators
Diffstat (limited to 'plugins/Db3x_mmap/src/dbcontacts.cpp')
-rw-r--r--plugins/Db3x_mmap/src/dbcontacts.cpp5
1 files changed, 2 insertions, 3 deletions
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