From 14302ddbac1e6d9c95de15c97362c3de09f545eb Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Fri, 7 Oct 2016 16:20:20 +0900 Subject: Fixed massive leaks of Event objects --- room.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'room.h') diff --git a/room.h b/room.h index 1c29aa01..7266ae70 100644 --- a/room.h +++ b/room.h @@ -37,13 +37,13 @@ namespace QMatrixClient { Q_OBJECT public: - using Timeline = Events; + using Timeline = Owning; Room(Connection* connection, QString id); virtual ~Room(); Q_INVOKABLE QString id() const; - Q_INVOKABLE Timeline messageEvents() const; + Q_INVOKABLE const Timeline& messageEvents() const; Q_INVOKABLE QString name() const; Q_INVOKABLE QStringList aliases() const; Q_INVOKABLE QString canonicalAlias() const; @@ -66,7 +66,7 @@ namespace QMatrixClient */ Q_INVOKABLE QString roomMembername(QString userId) const; - Q_INVOKABLE void updateData( const SyncRoomData& data ); + Q_INVOKABLE void updateData(SyncRoomData& data ); Q_INVOKABLE void setJoinState( JoinState state ); Q_INVOKABLE void markMessageAsRead( Event* event ); -- cgit v1.2.3