summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2019-11-12 17:46:09 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2019-11-23 20:07:15 +0100
commit5429b425e97f3482e7e5510a8606659168f58b7d (patch)
tree347253d76160cd829a384829936fb294a7d6ebc1
parentFix replies to encrypted events (diff)
downloadnheko-5429b425e97f3482e7e5510a8606659168f58b7d.tar.xz
Lint
-rw-r--r--src/timeline/TimelineModel.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/timeline/TimelineModel.cpp b/src/timeline/TimelineModel.cpp
index 72c107d4..7c78e552 100644
--- a/src/timeline/TimelineModel.cpp
+++ b/src/timeline/TimelineModel.cpp
@@ -440,15 +440,13 @@ TimelineModel::data(const QModelIndex &index, int role) const
                 for (int r = index.row() - 1; r > 0; r--) {
                         auto tempEv        = events.value(eventOrder[r]);
                         QDateTime prevDate = boost::apply_visitor(
-                          [](const auto &e) -> QDateTime { return eventTimestamp(e); },
-                          tempEv);
+                          [](const auto &e) -> QDateTime { return eventTimestamp(e); }, tempEv);
                         prevDate.setTime(QTime());
                         if (prevDate != date)
                                 return QString("%2 %1").arg(date.toMSecsSinceEpoch()).arg(userId);
 
-                        QString prevUserId =
-                          boost::apply_visitor([](const auto &e) -> QString { return senderId(e); },
-                                               tempEv);
+                        QString prevUserId = boost::apply_visitor(
+                          [](const auto &e) -> QString { return senderId(e); }, tempEv);
                         if (userId != prevUserId)
                                 break;
                 }