aboutsummaryrefslogtreecommitdiff
path: root/lib/events/eventloader.h
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2019-08-02 19:59:40 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2019-08-02 19:59:40 +0900
commitc05ade838f0fce81f2bbe80a3295618a8a26ff52 (patch)
tree763340439a0f4034e9c829d76cb1ffe9766b83c5 /lib/events/eventloader.h
parent1a1ea8fc87e827fa44c80ff30277e3bee62f4ebb (diff)
downloadlibquotient-c05ade838f0fce81f2bbe80a3295618a8a26ff52.tar.gz
libquotient-c05ade838f0fce81f2bbe80a3295618a8a26ff52.zip
Apply the new brace wrapping to source files
Diffstat (limited to 'lib/events/eventloader.h')
-rw-r--r--lib/events/eventloader.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/events/eventloader.h b/lib/events/eventloader.h
index a203eaa3..9e8bb410 100644
--- a/lib/events/eventloader.h
+++ b/lib/events/eventloader.h
@@ -20,10 +20,8 @@
#include "stateevent.h"
-namespace QMatrixClient
-{
-namespace _impl
-{
+namespace QMatrixClient {
+namespace _impl {
template <typename BaseEventT>
static inline auto loadEvent(const QJsonObject& json,
const QString& matrixType)
@@ -75,8 +73,7 @@ inline StateEventPtr loadStateEvent(const QString& matrixType,
}
template <typename EventT>
-struct JsonConverter<event_ptr_tt<EventT>>
-{
+struct JsonConverter<event_ptr_tt<EventT>> {
static auto load(const QJsonValue& jv)
{
return loadEvent<EventT>(jv.toObject());