aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/create_room.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/csapi/create_room.cpp')
-rw-r--r--lib/csapi/create_room.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/csapi/create_room.cpp b/lib/csapi/create_room.cpp
index 068b567f..36f83727 100644
--- a/lib/csapi/create_room.cpp
+++ b/lib/csapi/create_room.cpp
@@ -18,20 +18,20 @@ namespace QMatrixClient
QJsonObject toJson(const CreateRoomJob::Invite3pid& pod)
{
- QJsonObject _json;
- addParam<>(_json, QStringLiteral("id_server"), pod.idServer);
- addParam<>(_json, QStringLiteral("medium"), pod.medium);
- addParam<>(_json, QStringLiteral("address"), pod.address);
- return _json;
+ QJsonObject jo;
+ addParam<>(jo, QStringLiteral("id_server"), pod.idServer);
+ addParam<>(jo, QStringLiteral("medium"), pod.medium);
+ addParam<>(jo, QStringLiteral("address"), pod.address);
+ return jo;
}
QJsonObject toJson(const CreateRoomJob::StateEvent& pod)
{
- QJsonObject _json;
- addParam<>(_json, QStringLiteral("type"), pod.type);
- addParam<IfNotEmpty>(_json, QStringLiteral("state_key"), pod.stateKey);
- addParam<>(_json, QStringLiteral("content"), pod.content);
- return _json;
+ QJsonObject jo;
+ addParam<>(jo, QStringLiteral("type"), pod.type);
+ addParam<IfNotEmpty>(jo, QStringLiteral("state_key"), pod.stateKey);
+ addParam<>(jo, QStringLiteral("content"), pod.content);
+ return jo;
}
} // namespace QMatrixClient