mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 12:38:48 +03:00
Fix shadow warning
This commit is contained in:
parent
34f5400e99
commit
c1ee22a53e
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue