aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/device_management.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/device_management.cpp
parent10867950474a360426685ad888237a5542b0cfac (diff)
downloadlibquotient-2dd85770cbfd6d9c7506757f25765c05ef74987d.tar.gz
libquotient-2dd85770cbfd6d9c7506757f25765c05ef74987d.zip
Regenerate API files upon the previous commit
Diffstat (limited to 'lib/csapi/device_management.cpp')
-rw-r--r--lib/csapi/device_management.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/csapi/device_management.cpp b/lib/csapi/device_management.cpp
index fb58633c..6f2badee 100644
--- a/lib/csapi/device_management.cpp
+++ b/lib/csapi/device_management.cpp
@@ -34,9 +34,9 @@ UpdateDeviceJob::UpdateDeviceJob(const QString& deviceId,
: BaseJob(HttpVerb::Put, QStringLiteral("UpdateDeviceJob"),
makePath("/_matrix/client/v3", "/devices/", deviceId))
{
- QJsonObject _data;
- addParam<IfNotEmpty>(_data, QStringLiteral("display_name"), displayName);
- setRequestData(std::move(_data));
+ QJsonObject _dataJson;
+ addParam<IfNotEmpty>(_dataJson, QStringLiteral("display_name"), displayName);
+ setRequestData({ _dataJson });
}
DeleteDeviceJob::DeleteDeviceJob(const QString& deviceId,
@@ -44,9 +44,9 @@ DeleteDeviceJob::DeleteDeviceJob(const QString& deviceId,
: BaseJob(HttpVerb::Delete, QStringLiteral("DeleteDeviceJob"),
makePath("/_matrix/client/v3", "/devices/", deviceId))
{
- QJsonObject _data;
- addParam<IfNotEmpty>(_data, QStringLiteral("auth"), auth);
- setRequestData(std::move(_data));
+ QJsonObject _dataJson;
+ addParam<IfNotEmpty>(_dataJson, QStringLiteral("auth"), auth);
+ setRequestData({ _dataJson });
}
DeleteDevicesJob::DeleteDevicesJob(const QStringList& devices,
@@ -54,8 +54,8 @@ DeleteDevicesJob::DeleteDevicesJob(const QStringList& devices,
: BaseJob(HttpVerb::Post, QStringLiteral("DeleteDevicesJob"),
makePath("/_matrix/client/v3", "/delete_devices"))
{
- QJsonObject _data;
- addParam<>(_data, QStringLiteral("devices"), devices);
- addParam<IfNotEmpty>(_data, QStringLiteral("auth"), auth);
- setRequestData(std::move(_data));
+ QJsonObject _dataJson;
+ addParam<>(_dataJson, QStringLiteral("devices"), devices);
+ addParam<IfNotEmpty>(_dataJson, QStringLiteral("auth"), auth);
+ setRequestData({ _dataJson });
}