From bd5b10c8d59b971379799b164eb968eea939079a Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Fri, 5 Jan 2018 17:23:55 +0900 Subject: 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. --- jobs/{{base}}.h.mustache | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'jobs/{{base}}.h.mustache') 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}} -- cgit v1.2.3