summaryrefslogtreecommitdiff
path: root/plugins/FavContacts/src/favlist.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/FavContacts/src/favlist.h')
-rw-r--r--plugins/FavContacts/src/favlist.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/FavContacts/src/favlist.h b/plugins/FavContacts/src/favlist.h
index 394c7fb747..52c1679edf 100644
--- a/plugins/FavContacts/src/favlist.h
+++ b/plugins/FavContacts/src/favlist.h
@@ -111,7 +111,7 @@ public:
nGroups = 1;
- for (MCONTACT hContact = db_find_first(); hContact; hContact = db_find_next(hContact))
+ for (auto &hContact : contact_iter())
if (db_get_b(hContact, "FavContacts", "IsFavourite", 0))
addContact(hContact, true);