diff options
author | David A Roberts <d@vidr.cc> | 2016-04-09 14:06:34 +1000 |
---|---|---|
committer | David A Roberts <d@vidr.cc> | 2016-04-09 14:06:34 +1000 |
commit | 8ddbecbfeac5d35d254a642d24beeb344c33babd (patch) | |
tree | 537fe938309af9a50bfafba47b5a78cc0d82f1e2 /room.cpp | |
parent | 7bf926aeb3502712aa04b915e7b404b411b51599 (diff) | |
download | libquotient-8ddbecbfeac5d35d254a642d24beeb344c33babd.tar.gz libquotient-8ddbecbfeac5d35d254a642d24beeb344c33babd.zip |
Make Connection parent of Room.
Diffstat (limited to 'room.cpp')
-rw-r--r-- | room.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -65,7 +65,7 @@ class Room::Private: public QObject }; Room::Room(Connection* connection, QString id) - : d(new Private(this)) + : QObject(connection), d(new Private(this)) { d->id = id; d->connection = connection; @@ -78,6 +78,7 @@ Room::Room(Connection* connection, QString id) Room::~Room() { + qDebug() << "deconstructing room " << this; delete d; } |