summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-07-18 17:11:02 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-07-18 17:11:02 +0300
commit00f99d9ae56aed2deea2f8ec3982957d699f663e (patch)
tree7f89a00987c3ae833a58ea7914f34acb91b96366 /src
parentMark own read messages with a double checkmark (#377) (diff)
downloadnheko-00f99d9ae56aed2deea2f8ec3982957d699f663e.tar.xz
Fix variable shadowing on clang
Diffstat (limited to 'src')
-rw-r--r--src/Cache.cpp6
1 files 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(); } }