diff options
Diffstat (limited to 'lib/csapi/definitions/push_ruleset.h')
-rw-r--r-- | lib/csapi/definitions/push_ruleset.h | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/lib/csapi/definitions/push_ruleset.h b/lib/csapi/definitions/push_ruleset.h index e1a2c142..f9aedad8 100644 --- a/lib/csapi/definitions/push_ruleset.h +++ b/lib/csapi/definitions/push_ruleset.h @@ -4,12 +4,10 @@ #pragma once - - #include "converters.h" #include "csapi/definitions/push_rule.h" -#include "converters.h" + #include <QtCore/QVector> namespace QMatrixClient @@ -17,7 +15,6 @@ namespace QMatrixClient // Data structures - struct PushRuleset { @@ -30,15 +27,13 @@ struct PushRuleset QVector<PushRule> sender; QVector<PushRule> underride; - - }; -template <> struct JsonObjectConverter<PushRuleset> +template <> +struct JsonObjectConverter<PushRuleset> { static void dumpTo(QJsonObject& jo, const PushRuleset& pod); - static void fillFrom(const QJsonObject& jo, PushRuleset& pod);}; - - + static void fillFrom(const QJsonObject& jo, PushRuleset& pod); +}; } // namespace QMatrixClient |