mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 19:08:58 +03:00
Lint
This commit is contained in:
parent
cf88499ccb
commit
5429b425e9
1 changed files with 3 additions and 5 deletions
|
@ -440,15 +440,13 @@ TimelineModel::data(const QModelIndex &index, int role) const
|
||||||
for (int r = index.row() - 1; r > 0; r--) {
|
for (int r = index.row() - 1; r > 0; r--) {
|
||||||
auto tempEv = events.value(eventOrder[r]);
|
auto tempEv = events.value(eventOrder[r]);
|
||||||
QDateTime prevDate = boost::apply_visitor(
|
QDateTime prevDate = boost::apply_visitor(
|
||||||
[](const auto &e) -> QDateTime { return eventTimestamp(e); },
|
[](const auto &e) -> QDateTime { return eventTimestamp(e); }, tempEv);
|
||||||
tempEv);
|
|
||||||
prevDate.setTime(QTime());
|
prevDate.setTime(QTime());
|
||||||
if (prevDate != date)
|
if (prevDate != date)
|
||||||
return QString("%2 %1").arg(date.toMSecsSinceEpoch()).arg(userId);
|
return QString("%2 %1").arg(date.toMSecsSinceEpoch()).arg(userId);
|
||||||
|
|
||||||
QString prevUserId =
|
QString prevUserId = boost::apply_visitor(
|
||||||
boost::apply_visitor([](const auto &e) -> QString { return senderId(e); },
|
[](const auto &e) -> QString { return senderId(e); }, tempEv);
|
||||||
tempEv);
|
|
||||||
if (userId != prevUserId)
|
if (userId != prevUserId)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue