diff options
Diffstat (limited to 'lib/csapi/joining.cpp')
-rw-r--r-- | lib/csapi/joining.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/lib/csapi/joining.cpp b/lib/csapi/joining.cpp index 1a29ac62..71781154 100644 --- a/lib/csapi/joining.cpp +++ b/lib/csapi/joining.cpp @@ -18,12 +18,12 @@ namespace QMatrixClient QJsonObject toJson(const JoinRoomByIdJob::ThirdPartySigned& pod) { - QJsonObject _json; - addParam<>(_json, QStringLiteral("sender"), pod.sender); - addParam<>(_json, QStringLiteral("mxid"), pod.mxid); - addParam<>(_json, QStringLiteral("token"), pod.token); - addParam<>(_json, QStringLiteral("signatures"), pod.signatures); - return _json; + QJsonObject jo; + addParam<>(jo, QStringLiteral("sender"), pod.sender); + addParam<>(jo, QStringLiteral("mxid"), pod.mxid); + addParam<>(jo, QStringLiteral("token"), pod.token); + addParam<>(jo, QStringLiteral("signatures"), pod.signatures); + return jo; } } // namespace QMatrixClient @@ -68,19 +68,19 @@ namespace QMatrixClient QJsonObject toJson(const JoinRoomJob::Signed& pod) { - QJsonObject _json; - addParam<>(_json, QStringLiteral("sender"), pod.sender); - addParam<>(_json, QStringLiteral("mxid"), pod.mxid); - addParam<>(_json, QStringLiteral("token"), pod.token); - addParam<>(_json, QStringLiteral("signatures"), pod.signatures); - return _json; + QJsonObject jo; + addParam<>(jo, QStringLiteral("sender"), pod.sender); + addParam<>(jo, QStringLiteral("mxid"), pod.mxid); + addParam<>(jo, QStringLiteral("token"), pod.token); + addParam<>(jo, QStringLiteral("signatures"), pod.signatures); + return jo; } QJsonObject toJson(const JoinRoomJob::ThirdPartySigned& pod) { - QJsonObject _json; - addParam<>(_json, QStringLiteral("signed"), pod.signedData); - return _json; + QJsonObject jo; + addParam<>(jo, QStringLiteral("signed"), pod.signedData); + return jo; } } // namespace QMatrixClient |