diff options
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
|