diff options
-rw-r--r-- | room.cpp | 5 | ||||
-rw-r--r-- | room.h | 5 |
2 files changed, 6 insertions, 4 deletions
@@ -160,6 +160,11 @@ class Room::Private } }; +RoomEventPtr TimelineItem::replaceEvent(RoomEventPtr&& other) +{ + return std::exchange(evt, std::move(other)); +} + Room::Room(Connection* connection, QString id, JoinState initialJoinState) : QObject(connection), d(new Private(connection, id, initialJoinState)) { @@ -57,10 +57,7 @@ namespace QMatrixClient index_t index() const { return idx; } // Used for event redaction - RoomEventPtr replaceEvent(RoomEventPtr&& other) - { - return std::exchange(evt, std::move(other)); - } + RoomEventPtr replaceEvent(RoomEventPtr&& other); private: RoomEventPtr evt; |