diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2017-10-12 16:08:18 +0200 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2017-10-12 16:08:18 +0200 |
commit | e7df1390b98cb6a4b0cae1558c331a8e79d71f95 (patch) | |
tree | 2aa1722f5cb69082201f3c6744946c9ff8765cf8 | |
parent | 13d1943710025d6a9dd6011b67c083ac9b00aa75 (diff) | |
download | libquotient-e7df1390b98cb6a4b0cae1558c331a8e79d71f95.tar.gz libquotient-e7df1390b98cb6a4b0cae1558c331a8e79d71f95.zip |
{{templates}} polishing
-rw-r--r-- | jobs/{{base}}.cpp.mustache | 2 | ||||
-rw-r--r-- | jobs/{{base}}.h.mustache | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/jobs/{{base}}.cpp.mustache b/jobs/{{base}}.cpp.mustache index beab77df..45668d4c 100644 --- a/jobs/{{base}}.cpp.mustache +++ b/jobs/{{base}}.cpp.mustache @@ -52,7 +52,7 @@ class {{camelCaseOperationId}}Job::Private delete d; } {{# properties}} -{{dataType}} {{camelCaseOperationId}}Job::{{paramName}}() const +const {{dataType}}& {{camelCaseOperationId}}Job::{{paramName}}() const { return d->{{paramName}}; } diff --git a/jobs/{{base}}.h.mustache b/jobs/{{base}}.h.mustache index 08372b77..ad8a2f1f 100644 --- a/jobs/{{base}}.h.mustache +++ b/jobs/{{base}}.h.mustache @@ -32,9 +32,9 @@ namespace QMatrixClient public: explicit {{camelCaseOperationId}}Job({{#allParams}}{{#avoidCopy?}}const {{dataType}}&{{/avoidCopy?}}{{^avoidCopy?}}{{dataType}}{{/avoidCopy?}} {{paramName}}{{^required?}} = {{defaultValue}}{{^defaultValue}}{}{{/defaultValue}}{{/required?}}{{#hasMore}}, {{/hasMore}}{{/allParams}}); {{# responses}}{{#normalResponse?}}{{#properties?}} - virtual ~{{camelCaseOperationId}}Job(); + ~{{camelCaseOperationId}}Job() override; - {{#properties}}{{dataType}} {{paramName}}() const; + {{#properties}}const {{dataType}}& {{paramName}}() const; {{/properties}} protected: {{^returnFile}}Status parseJson(const QJsonDocument& data) override;{{/returnFile}} |