From 00f99d9ae56aed2deea2f8ec3982957d699f663e Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Wed, 18 Jul 2018 17:11:02 +0300 Subject: [PATCH] Fix variable shadowing on clang --- src/Cache.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Cache.cpp b/src/Cache.cpp index 452567c3..a1242633 100644 --- a/src/Cache.cpp +++ b/src/Cache.cpp @@ -878,9 +878,9 @@ Cache::saveState(const mtx::responses::Sync &res) txn.commit(); for (const auto &room : res.rooms.join) { - auto txn = lmdb::txn::begin(env_); - notifyForReadReceipts(txn, room.first); - txn.commit(); + auto tmpTxn = lmdb::txn::begin(env_); + notifyForReadReceipts(tmpTxn, room.first); + tmpTxn.commit(); } }