aboutsummaryrefslogtreecommitdiff
path: root/jobs/{{base}}.h.mustache
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-01-05 17:23:55 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-01-05 17:36:20 +0900
commitbd5b10c8d59b971379799b164eb968eea939079a (patch)
tree6db21748739aec8d817a6936ebf75aeb332bf711 /jobs/{{base}}.h.mustache
parent5d85fc6335d4b49438a83e1e592ccac5a41d2332 (diff)
downloadlibquotient-bd5b10c8d59b971379799b164eb968eea939079a.tar.gz
libquotient-bd5b10c8d59b971379799b164eb968eea939079a.zip
jobs/generated: Make default values propagate properly
Thanks to the latest GTAD. initializeDefaultValue is a partial that in turn inserts a type-specific {{>initializer}} if there is a non-trivial default value.
Diffstat (limited to 'jobs/{{base}}.h.mustache')
-rw-r--r--jobs/{{base}}.h.mustache2
1 files changed, 1 insertions, 1 deletions
diff --git a/jobs/{{base}}.h.mustache b/jobs/{{base}}.h.mustache
index b5106dbe..69e0e6d3 100644
--- a/jobs/{{base}}.h.mustache
+++ b/jobs/{{base}}.h.mustache
@@ -43,7 +43,7 @@ namespace QMatrixClient
{{/ trivial?}}{{/model}}
// End of inner data structures
{{/models}}
- explicit {{camelCaseOperationId}}Job({{#allParams}}{{>maybeCrefType}} {{paramName}}{{^required?}} = {{defaultValue}}{{^defaultValue}}{}{{/defaultValue}}{{/required?}}{{#@join}}, {{/@join}}{{/allParams}});{{!skip EOL
+ explicit {{camelCaseOperationId}}Job({{#allParams}}{{>maybeCrefType}} {{paramName}}{{^required?}} = {{>initializeDefaultValue}}{{/required?}}{{#@join}}, {{/@join}}{{/allParams}});{{!skip EOL
}}{{# responses}}{{#normalResponse?}}{{#allProperties?}}
~{{camelCaseOperationId}}Job() override;
{{#allProperties}}