summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2020-07-26 13:07:36 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2020-07-26 13:07:36 +0200
commitade905c881a0e33fd744a4803f327052fce6a699 (patch)
tree818942ab71a87530488fc8da66e4ad4d71429eca
parentRename EventStore::event to get to remove ambiguity with QObject::event (diff)
downloadnheko-ade905c881a0e33fd744a4803f327052fce6a699.tar.xz
Fix shadowing variable
-rw-r--r--src/timeline/EventStore.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/timeline/EventStore.cpp b/src/timeline/EventStore.cpp
index 94538672..639cae0f 100644
--- a/src/timeline/EventStore.cpp
+++ b/src/timeline/EventStore.cpp
@@ -292,10 +292,10 @@ EventStore::reactions(const std::string &event_id)
                 reaction.count_            = agg.count;
                 reaction.selfReactedEvent_ = QString::fromStdString(agg.reactedBySelf);
 
-                bool first = true;
+                bool firstReaction = true;
                 for (const auto &user : agg.users) {
-                        if (first)
-                                first = false;
+                        if (firstReaction)
+                                firstReaction = false;
                         else
                                 reaction.users_ += ", ";