From 9e96bc9b8dec6613e3e2f2fd564e9f6bee9bbce4 Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Mon, 24 Jun 2019 07:38:50 +0900 Subject: csapi/*/**: clang-format contents of csapi subdirs as well --- lib/csapi/definitions/wellknown/full.h | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) (limited to 'lib/csapi/definitions/wellknown/full.h') diff --git a/lib/csapi/definitions/wellknown/full.h b/lib/csapi/definitions/wellknown/full.h index ef975969..ddc06653 100644 --- a/lib/csapi/definitions/wellknown/full.h +++ b/lib/csapi/definitions/wellknown/full.h @@ -4,40 +4,39 @@ #pragma once - - #include "converters.h" -#include -#include "converters.h" #include "csapi/definitions/wellknown/homeserver.h" #include "csapi/definitions/wellknown/identity_server.h" + #include +#include namespace QMatrixClient { // Data structures -/// Used by clients to determine the homeserver, identity server, and other/// optional components they should be interacting with. +/// Used by clients to determine the homeserver, identity server, and other/// +/// optional components they should be interacting with. struct DiscoveryInformation { - /// Used by clients to determine the homeserver, identity server, and otheroptional components they should be interacting with. + /// Used by clients to determine the homeserver, identity server, and + /// otheroptional components they should be interacting with. HomeserverInformation homeserver; - /// Used by clients to determine the homeserver, identity server, and otheroptional components they should be interacting with. + /// Used by clients to determine the homeserver, identity server, and + /// otheroptional components they should be interacting with. Omittable identityServer; - /// Application-dependent keys using Java package naming convention. QHash additionalProperties; - }; -template <> struct JsonObjectConverter +template <> +struct JsonObjectConverter { static void dumpTo(QJsonObject& jo, const DiscoveryInformation& pod); - static void fillFrom(QJsonObject jo, DiscoveryInformation& pod);}; - - + static void fillFrom(QJsonObject jo, DiscoveryInformation& pod); +}; } // namespace QMatrixClient -- cgit v1.2.3