aboutsummaryrefslogtreecommitdiff
path: root/lib/jobs/generated/create_room.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/jobs/generated/create_room.cpp')
-rw-r--r--lib/jobs/generated/create_room.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/jobs/generated/create_room.cpp b/lib/jobs/generated/create_room.cpp
index de7807b5..6e582791 100644
--- a/lib/jobs/generated/create_room.cpp
+++ b/lib/jobs/generated/create_room.cpp
@@ -23,16 +23,16 @@ namespace QMatrixClient
{
template <> struct FromJson<CreateRoomJob::Invite3pid>
{
- CreateRoomJob::Invite3pid operator()(QJsonValue jv)
+ CreateRoomJob::Invite3pid operator()(const QJsonValue& jv)
{
- QJsonObject o = jv.toObject();
+ const auto& o = jv.toObject();
CreateRoomJob::Invite3pid result;
result.idServer =
- fromJson<QString>(o.value("id_server"));
+ fromJson<QString>(o.value("id_server"));
result.medium =
- fromJson<QString>(o.value("medium"));
+ fromJson<QString>(o.value("medium"));
result.address =
- fromJson<QString>(o.value("address"));
+ fromJson<QString>(o.value("address"));
return result;
}
@@ -52,16 +52,16 @@ namespace QMatrixClient
{
template <> struct FromJson<CreateRoomJob::StateEvent>
{
- CreateRoomJob::StateEvent operator()(QJsonValue jv)
+ CreateRoomJob::StateEvent operator()(const QJsonValue& jv)
{
- QJsonObject o = jv.toObject();
+ const auto& o = jv.toObject();
CreateRoomJob::StateEvent result;
result.type =
- fromJson<QString>(o.value("type"));
+ fromJson<QString>(o.value("type"));
result.stateKey =
- fromJson<QString>(o.value("state_key"));
+ fromJson<QString>(o.value("state_key"));
result.content =
- fromJson<QJsonObject>(o.value("content"));
+ fromJson<QJsonObject>(o.value("content"));
return result;
}