summaryrefslogtreecommitdiff
path: root/plugins/Dbx_mdbx/src/dbcontacts.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Dbx_mdbx/src/dbcontacts.cpp')
-rw-r--r--plugins/Dbx_mdbx/src/dbcontacts.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/Dbx_mdbx/src/dbcontacts.cpp b/plugins/Dbx_mdbx/src/dbcontacts.cpp
index 72a88492d1..8c2efb9df1 100644
--- a/plugins/Dbx_mdbx/src/dbcontacts.cpp
+++ b/plugins/Dbx_mdbx/src/dbcontacts.cpp
@@ -130,8 +130,7 @@ BOOL CDbxMDBX::MetaMergeHistory(DBCachedContact *ccMeta, DBCachedContact *ccSub)
LIST<EventItem> list(1000);
GatherContactHistory(ccSub->contactID, list);
- for (int i = 0; i < list.getCount(); i++) {
- EventItem *EI = list[i];
+ for (auto &EI : list) {
{
txn_ptr trnlck(m_env);
@@ -163,8 +162,7 @@ BOOL CDbxMDBX::MetaSplitHistory(DBCachedContact *ccMeta, DBCachedContact *ccSub)
LIST<EventItem> list(1000);
GatherContactHistory(ccSub->contactID, list);
- for (int i = 0; i < list.getCount(); i++) {
- EventItem *EI = list[i];
+ for (auto &EI : list) {
{
txn_ptr trnlck(m_env);
DBEventSortingKey insVal = { ccMeta->contactID, EI->eventId, EI->ts };