aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlack Hat <bhat@encom.eu.org>2018-07-22 11:44:32 +0800
committerBlack Hat <bhat@encom.eu.org>2018-07-22 11:44:32 +0800
commit04d463a4347f54e66687a99fbc906923e50bcad1 (patch)
tree2773094551ba6674ec57c0eae25ccf0be743d600
parent287eccb4b7f88a52cd191ae208009335fca7e907 (diff)
downloadlibquotient-04d463a4347f54e66687a99fbc906923e50bcad1.tar.gz
libquotient-04d463a4347f54e66687a99fbc906923e50bcad1.zip
Change order data type.
-rw-r--r--lib/room.cpp2
-rw-r--r--lib/room.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/room.cpp b/lib/room.cpp
index 4330cddc..1668fdb7 100644
--- a/lib/room.cpp
+++ b/lib/room.cpp
@@ -684,7 +684,7 @@ void Room::addTag(const QString& name, const TagRecord& record)
d->broadcastTagUpdates();
}
-void Room::addTag(const QString &name, int order)
+void Room::addTag(const QString& name, const QString& order)
{
addTag(name, TagRecord{order});
}
diff --git a/lib/room.h b/lib/room.h
index d148b9c7..e7f260dd 100644
--- a/lib/room.h
+++ b/lib/room.h
@@ -301,7 +301,7 @@ namespace QMatrixClient
* clients.
*/
void addTag(const QString& name, const TagRecord& record = {});
- Q_INVOKABLE void addTag(const QString& name, int order);
+ Q_INVOKABLE void addTag(const QString& name, const QString& order);
/** Remove a tag from the room */
Q_INVOKABLE void removeTag(const QString& name);