summary refs log tree commit diff
path: root/include/TimelineView.h
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2017-10-22 19:03:55 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2017-10-22 19:03:55 +0300
commitc0e55378c31321e2ab7a117cefb3bd63a609e474 (patch)
treeef6f08864d713a4fc6dc49b24018156abfdec048 /include/TimelineView.h
parentRemove cache updates from the main thread (diff)
downloadnheko-c0e55378c31321e2ab7a117cefb3bd63a609e474.tar.xz
Remove extra inline keywords
Diffstat (limited to 'include/TimelineView.h')
-rw-r--r--include/TimelineView.h16
1 files changed, 2 insertions, 14 deletions
diff --git a/include/TimelineView.h b/include/TimelineView.h

index f25bc570..55f25687 100644 --- a/include/TimelineView.h +++ b/include/TimelineView.h
@@ -99,7 +99,7 @@ public slots: void addBackwardsEvents(const QString &room_id, const RoomMessages &msgs); // Whether or not the initial batch has been loaded. - bool hasLoaded(); + bool hasLoaded() { return scroll_layout_->count() > 1 || isTimelineFinished; }; signals: void updateLastTimelineMessage(const QString &user, const DescInfo &info); @@ -120,7 +120,7 @@ private: const QString &userid); void removePendingMessage(const QString &eventid, const QString &body); - inline bool isDuplicate(const QString &event_id); + bool isDuplicate(const QString &event_id) { return eventIds_.contains(event_id); }; // Return nullptr if the event couldn't be parsed. TimelineItem *parseMessageEvent(const QJsonObject &event, TimelineDirection direction); @@ -160,15 +160,3 @@ private: QList<PendingMessage> pending_msgs_; QSharedPointer<MatrixClient> client_; }; - -inline bool -TimelineView::isDuplicate(const QString &event_id) -{ - return eventIds_.contains(event_id); -} - -inline bool -TimelineView::hasLoaded() -{ - return scroll_layout_->count() > 1 || isTimelineFinished; -}