aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--room.cpp2
-rw-r--r--room.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/room.cpp b/room.cpp
index 2ba3766a..64ff8cd6 100644
--- a/room.cpp
+++ b/room.cpp
@@ -155,7 +155,7 @@ Room::~Room()
delete d;
}
-QString Room::id() const
+const QString& Room::id() const
{
return d->id;
}
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;