summary refs log tree commit diff
path: root/include/RoomState.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/RoomState.h
parentRemove cache updates from the main thread (diff)
downloadnheko-c0e55378c31321e2ab7a117cefb3bd63a609e474.tar.xz
Remove extra inline keywords
Diffstat (limited to 'include/RoomState.h')
-rw-r--r--include/RoomState.h24
1 files changed, 3 insertions, 21 deletions
diff --git a/include/RoomState.h b/include/RoomState.h

index a07fcbed..57955e56 100644 --- a/include/RoomState.h +++ b/include/RoomState.h
@@ -49,9 +49,9 @@ public: void resolveAvatar(); void parse(const QJsonObject &object); - inline QUrl getAvatar() const; - inline QString getName() const; - inline QString getTopic() const; + QUrl getAvatar() const { return avatar_; }; + QString getName() const { return name_; }; + QString getTopic() const { return topic.content().topic().simplified(); }; void removeLeaveMemberships(); void update(const RoomState &state); @@ -81,21 +81,3 @@ private: // avatar event this should be empty. QString userAvatar_; }; - -inline QString -RoomState::getTopic() const -{ - return topic.content().topic().simplified(); -} - -inline QString -RoomState::getName() const -{ - return name_; -} - -inline QUrl -RoomState::getAvatar() const -{ - return avatar_; -}