aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/cross_signing.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/csapi/cross_signing.cpp')
-rw-r--r--lib/csapi/cross_signing.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/csapi/cross_signing.cpp b/lib/csapi/cross_signing.cpp
index c6c34772..83136d71 100644
--- a/lib/csapi/cross_signing.cpp
+++ b/lib/csapi/cross_signing.cpp
@@ -14,14 +14,14 @@ UploadCrossSigningKeysJob::UploadCrossSigningKeysJob(
: BaseJob(HttpVerb::Post, QStringLiteral("UploadCrossSigningKeysJob"),
makePath("/_matrix/client/v3", "/keys/device_signing/upload"))
{
- QJsonObject _data;
- addParam<IfNotEmpty>(_data, QStringLiteral("master_key"), masterKey);
- addParam<IfNotEmpty>(_data, QStringLiteral("self_signing_key"),
+ QJsonObject _dataJson;
+ addParam<IfNotEmpty>(_dataJson, QStringLiteral("master_key"), masterKey);
+ addParam<IfNotEmpty>(_dataJson, QStringLiteral("self_signing_key"),
selfSigningKey);
- addParam<IfNotEmpty>(_data, QStringLiteral("user_signing_key"),
+ addParam<IfNotEmpty>(_dataJson, QStringLiteral("user_signing_key"),
userSigningKey);
- addParam<IfNotEmpty>(_data, QStringLiteral("auth"), auth);
- setRequestData(std::move(_data));
+ addParam<IfNotEmpty>(_dataJson, QStringLiteral("auth"), auth);
+ setRequestData({ _dataJson });
}
UploadCrossSigningSignaturesJob::UploadCrossSigningSignaturesJob(
@@ -29,5 +29,5 @@ UploadCrossSigningSignaturesJob::UploadCrossSigningSignaturesJob(
: BaseJob(HttpVerb::Post, QStringLiteral("UploadCrossSigningSignaturesJob"),
makePath("/_matrix/client/v3", "/keys/signatures/upload"))
{
- setRequestData(RequestData(toJson(signatures)));
+ setRequestData({ toJson(signatures) });
}