diff options
author | Felix Rohrbach <fxrh@gmx.de> | 2016-10-11 23:19:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-11 23:19:39 +0200 |
commit | 45f38a1d6687d1ceaca87a6d6d94ac2515debb02 (patch) | |
tree | b8c783c118b674d11d75256c2317803644473f99 /room.h | |
parent | 7b0de25eaea285385a7e46183b487a7c7d1fdecd (diff) | |
parent | 29bff90ecb0d1febfa8728383195f0f41c9a29ef (diff) | |
download | libquotient-45f38a1d6687d1ceaca87a6d6d94ac2515debb02.tar.gz libquotient-45f38a1d6687d1ceaca87a6d6d94ac2515debb02.zip |
Merge pull request #32 from Fxrh/kitsune-memory-care
Event objects leaks plugged
Diffstat (limited to 'room.h')
-rw-r--r-- | room.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -37,13 +37,13 @@ namespace QMatrixClient { Q_OBJECT public: - using Timeline = Events; + using Timeline = Owning<Events>; 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 ); |