diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2017-12-06 21:19:55 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2017-12-07 12:53:00 +0900 |
commit | f7e210bc04bdb45b05f3c75237001b8e51198242 (patch) | |
tree | c97f3bf7655c508b74aeb391ec02dbd2d18da61f /jobs/{{base}}.h.mustache | |
parent | e74de57832f684244d7da82fa743b63d459bf488 (diff) | |
download | libquotient-f7e210bc04bdb45b05f3c75237001b8e51198242.tar.gz libquotient-f7e210bc04bdb45b05f3c75237001b8e51198242.zip |
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).
Diffstat (limited to 'jobs/{{base}}.h.mustache')
-rw-r--r-- | jobs/{{base}}.h.mustache | 4 |
1 files changed, 2 insertions, 2 deletions
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 |