summary refs log tree commit diff
path: root/src/timeline2/TimelineModel.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2019-09-03 02:14:49 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2019-11-23 20:06:14 +0100
commitc1ee22a53eaca688ce0975e8a0732ce193930945 (patch)
treea2b3826f227a729ffd186bd3fdfb60c282fb6b1a /src/timeline2/TimelineModel.cpp
parentImplement TextMessage delegate (diff)
downloadnheko-c1ee22a53eaca688ce0975e8a0732ce193930945.tar.xz
Fix shadow warning
Diffstat (limited to 'src/timeline2/TimelineModel.cpp')
-rw-r--r--src/timeline2/TimelineModel.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/timeline2/TimelineModel.cpp b/src/timeline2/TimelineModel.cpp

index 112b2752..c1918d20 100644 --- a/src/timeline2/TimelineModel.cpp +++ b/src/timeline2/TimelineModel.cpp
@@ -234,15 +234,15 @@ TimelineModel::data(const QModelIndex &index, int role) const } void -TimelineModel::addEvents(const mtx::responses::Timeline &events) +TimelineModel::addEvents(const mtx::responses::Timeline &timeline) { if (isInitialSync) { - prev_batch_token_ = QString::fromStdString(events.prev_batch); + prev_batch_token_ = QString::fromStdString(timeline.prev_batch); isInitialSync = false; } std::vector<QString> ids; - for (const auto &e : events.events) { + for (const auto &e : timeline.events) { QString id = boost::apply_visitor([](const auto &e) -> QString { return eventId(e); }, e);