aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/room_upgrades.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/csapi/room_upgrades.cpp')
-rw-r--r--lib/csapi/room_upgrades.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/csapi/room_upgrades.cpp b/lib/csapi/room_upgrades.cpp
index 3f67234d..b03fb6e8 100644
--- a/lib/csapi/room_upgrades.cpp
+++ b/lib/csapi/room_upgrades.cpp
@@ -10,8 +10,8 @@ UpgradeRoomJob::UpgradeRoomJob(const QString& roomId, const QString& newVersion)
: BaseJob(HttpVerb::Post, QStringLiteral("UpgradeRoomJob"),
makePath("/_matrix/client/v3", "/rooms/", roomId, "/upgrade"))
{
- QJsonObject _data;
- addParam<>(_data, QStringLiteral("new_version"), newVersion);
- setRequestData(std::move(_data));
+ QJsonObject _dataJson;
+ addParam<>(_dataJson, QStringLiteral("new_version"), newVersion);
+ setRequestData({ _dataJson });
addExpectedKey("replacement_room");
}