aboutsummaryrefslogtreecommitdiff
path: root/room.h
diff options
context:
space:
mode:
authorFelix Rohrbach <fxrh@gmx.de>2016-10-11 23:19:39 +0200
committerGitHub <noreply@github.com>2016-10-11 23:19:39 +0200
commit45f38a1d6687d1ceaca87a6d6d94ac2515debb02 (patch)
treeb8c783c118b674d11d75256c2317803644473f99 /room.h
parent7b0de25eaea285385a7e46183b487a7c7d1fdecd (diff)
parent29bff90ecb0d1febfa8728383195f0f41c9a29ef (diff)
downloadlibquotient-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.h6
1 files changed, 3 insertions, 3 deletions
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<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 );