aboutsummaryrefslogtreecommitdiff
path: root/room.h
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2017-10-02 11:46:52 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2017-10-02 11:46:52 +0900
commit21fa206adab838fe90c84b16e910d1b696da0e28 (patch)
tree99d261f17023dc90b2afb3a23fd8e524f4685aa5 /room.h
parent79f52e3f6142afd48d30b842618ef0867072443b (diff)
downloadlibquotient-21fa206adab838fe90c84b16e910d1b696da0e28.tar.gz
libquotient-21fa206adab838fe90c84b16e910d1b696da0e28.zip
Room::id(): return cref
A cref is still faster than incrementing a refcounter in QString, and all the other COW stuff, and room id is not supposed to change ever.
Diffstat (limited to 'room.h')
-rw-r--r--room.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/room.h b/room.h
index 393dced3..455ef6cc 100644
--- a/room.h
+++ b/room.h
@@ -82,7 +82,7 @@ namespace QMatrixClient
Connection* connection() const;
User* localUser() const;
- QString id() const;
+ const QString& id() const;
QString name() const;
QStringList aliases() const;
QString canonicalAlias() const;