diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2019-06-24 07:38:50 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2019-06-24 07:38:50 +0900 |
commit | 9e96bc9b8dec6613e3e2f2fd564e9f6bee9bbce4 (patch) | |
tree | 2a9492b74440f3cfd1d1a353dd9f678d7a6b09ed /lib/csapi/definitions/wellknown/full.cpp | |
parent | 8d96901ff455e4072dd4b050cf9c17a5780bfacb (diff) | |
download | libquotient-9e96bc9b8dec6613e3e2f2fd564e9f6bee9bbce4.tar.gz libquotient-9e96bc9b8dec6613e3e2f2fd564e9f6bee9bbce4.zip |
csapi/*/**: clang-format contents of csapi subdirs as well
Diffstat (limited to 'lib/csapi/definitions/wellknown/full.cpp')
-rw-r--r-- | lib/csapi/definitions/wellknown/full.cpp | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/lib/csapi/definitions/wellknown/full.cpp b/lib/csapi/definitions/wellknown/full.cpp index a2d71db0..34d3bfbe 100644 --- a/lib/csapi/definitions/wellknown/full.cpp +++ b/lib/csapi/definitions/wellknown/full.cpp @@ -4,25 +4,21 @@ #include "full.h" - using namespace QMatrixClient; - -void JsonObjectConverter<DiscoveryInformation>::dumpTo(QJsonObject& jo, const DiscoveryInformation& pod) +void JsonObjectConverter<DiscoveryInformation>::dumpTo( + QJsonObject& jo, const DiscoveryInformation& pod) { fillJson(jo, pod.additionalProperties); addParam<>(jo, QStringLiteral("m.homeserver"), pod.homeserver); - addParam<IfNotEmpty>(jo, QStringLiteral("m.identity_server"), pod.identityServer); - + addParam<IfNotEmpty>(jo, QStringLiteral("m.identity_server"), + pod.identityServer); } - -void JsonObjectConverter<DiscoveryInformation>::fillFrom(QJsonObject jo, DiscoveryInformation& result) + +void JsonObjectConverter<DiscoveryInformation>::fillFrom( + QJsonObject jo, DiscoveryInformation& result) { fromJson(jo.take("m.homeserver"_ls), result.homeserver); fromJson(jo.take("m.identity_server"_ls), result.identityServer); fromJson(jo, result.additionalProperties); - } - - - |