aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/definitions/wellknown/homeserver.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2019-06-24 07:38:50 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2019-06-24 07:38:50 +0900
commit9e96bc9b8dec6613e3e2f2fd564e9f6bee9bbce4 (patch)
tree2a9492b74440f3cfd1d1a353dd9f678d7a6b09ed /lib/csapi/definitions/wellknown/homeserver.cpp
parent8d96901ff455e4072dd4b050cf9c17a5780bfacb (diff)
downloadlibquotient-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.cpp15
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);
-
}
-
-
-