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/homeserver.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/homeserver.cpp')
-rw-r--r-- | lib/csapi/definitions/wellknown/homeserver.cpp | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/lib/csapi/definitions/wellknown/homeserver.cpp b/lib/csapi/definitions/wellknown/homeserver.cpp index a8a5077b..f5746ede 100644 --- a/lib/csapi/definitions/wellknown/homeserver.cpp +++ b/lib/csapi/definitions/wellknown/homeserver.cpp @@ -4,21 +4,16 @@ #include "homeserver.h" - using namespace QMatrixClient; - -void JsonObjectConverter<HomeserverInformation>::dumpTo(QJsonObject& jo, const HomeserverInformation& pod) +void JsonObjectConverter<HomeserverInformation>::dumpTo( + QJsonObject& jo, const HomeserverInformation& pod) { addParam<>(jo, QStringLiteral("base_url"), pod.baseUrl); - } - -void JsonObjectConverter<HomeserverInformation>::fillFrom(const QJsonObject& jo, HomeserverInformation& result) + +void JsonObjectConverter<HomeserverInformation>::fillFrom( + const QJsonObject& jo, HomeserverInformation& result) { fromJson(jo.value("base_url"_ls), result.baseUrl); - } - - - |