aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/directory.cpp
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-06-16 13:29:02 +0200
committerAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-06-18 19:36:32 +0200
commit2dd85770cbfd6d9c7506757f25765c05ef74987d (patch)
tree5de167f66ee610ad01bca776897bd6c8183a66d7 /lib/csapi/directory.cpp
parent10867950474a360426685ad888237a5542b0cfac (diff)
downloadlibquotient-2dd85770cbfd6d9c7506757f25765c05ef74987d.tar.gz
libquotient-2dd85770cbfd6d9c7506757f25765c05ef74987d.zip
Regenerate API files upon the previous commit
Diffstat (limited to 'lib/csapi/directory.cpp')
-rw-r--r--lib/csapi/directory.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/csapi/directory.cpp b/lib/csapi/directory.cpp
index 86b14f3a..c1255bb1 100644
--- a/lib/csapi/directory.cpp
+++ b/lib/csapi/directory.cpp
@@ -10,9 +10,9 @@ SetRoomAliasJob::SetRoomAliasJob(const QString& roomAlias, const QString& roomId
: BaseJob(HttpVerb::Put, QStringLiteral("SetRoomAliasJob"),
makePath("/_matrix/client/v3", "/directory/room/", roomAlias))
{
- QJsonObject _data;
- addParam<>(_data, QStringLiteral("room_id"), roomId);
- setRequestData(std::move(_data));
+ QJsonObject _dataJson;
+ addParam<>(_dataJson, QStringLiteral("room_id"), roomId);
+ setRequestData({ _dataJson });
}
QUrl GetRoomIdByAliasJob::makeRequestUrl(QUrl baseUrl, const QString& roomAlias)