From f7e210bc04bdb45b05f3c75237001b8e51198242 Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Wed, 6 Dec 2017 21:19:55 +0900 Subject: Use new GTAD features: avoid copying of custom schemas; inline body where appropriate Body inlining is needed in content-repo cases and also cases with freeform JSON in the body (such as the one of upcoming PostReceiptJob). --- jobs/{{base}}.h.mustache | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'jobs/{{base}}.h.mustache') diff --git a/jobs/{{base}}.h.mustache b/jobs/{{base}}.h.mustache index f7124f97..76ae4f51 100644 --- a/jobs/{{base}}.h.mustache +++ b/jobs/{{base}}.h.mustache @@ -18,7 +18,7 @@ namespace QMatrixClient { {{#vars}}{{dataType.name}} {{nameCamelCase}}; {{/vars}} - operator QJsonValue() const; + operator QJsonObject() const; }; template <> struct FromJson<{{name}}> @@ -39,7 +39,7 @@ namespace QMatrixClient { {{#vars}}{{dataType.name}} {{nameCamelCase}}; {{/vars}} - operator QJsonValue() const; + operator QJsonObject() const; }; {{/ trivial?}}{{/model}} // End of inner data structures -- cgit v1.2.3