diff options
author | George Hazan <ghazan@miranda.im> | 2018-02-21 18:30:20 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-02-21 18:40:13 +0300 |
commit | 95ce21d8512af00a4c5f607091a459b789f79b79 (patch) | |
tree | a2ac7c7c7887b4c8c80e6a59ad9cc24ce4758e91 /plugins/Db3x_mmap/src/dbcontacts.cpp | |
parent | 9ceaf3659acce44d579c2db5b29d4b48dfe893f2 (diff) |
mmap: C++'11 iterators
Diffstat (limited to 'plugins/Db3x_mmap/src/dbcontacts.cpp')
-rw-r--r-- | plugins/Db3x_mmap/src/dbcontacts.cpp | 5 |
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
|