diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-05-01 12:53:00 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-05-01 13:41:15 +0900 |
commit | df268cad0ad517a75c813606bf3ef11bdba6f4e6 (patch) | |
tree | 61164013142fde45cead0ec57f08b87d56961b8e | |
parent | 8d7ff5d3741ff525d337871185ee9f7f2e885af5 (diff) | |
download | libquotient-df268cad0ad517a75c813606bf3ef11bdba6f4e6.tar.gz libquotient-df268cad0ad517a75c813606bf3ef11bdba6f4e6.zip |
Mustache: more C++ tidying and empty lines removal
-rw-r--r-- | lib/jobs/{{base}}.cpp.mustache | 2 | ||||
-rw-r--r-- | lib/jobs/{{base}}.h.mustache | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/jobs/{{base}}.cpp.mustache b/lib/jobs/{{base}}.cpp.mustache index 87205caa..1ca23799 100644 --- a/lib/jobs/{{base}}.cpp.mustache +++ b/lib/jobs/{{base}}.cpp.mustache @@ -71,7 +71,7 @@ BaseJob::Query queryTo{{camelCaseOperationId}}({{#queryParams}}{{>joinedParamDef {{/queryParams?}}{{^bodyParams}} QUrl {{camelCaseOperationId}}Job::makeRequestUrl(QUrl baseUrl{{#allParams?}}, {{#allParams}}{{>joinedParamDef}}{{/allParams}}{{/allParams?}}) { - return BaseJob::makeRequestUrl(baseUrl, + return BaseJob::makeRequestUrl(std::move(baseUrl), basePath{{#pathParts}} % {{_}}{{/pathParts}}{{#queryParams?}}, queryTo{{camelCaseOperationId}}({{>passQueryParams}}){{/queryParams?}}); } diff --git a/lib/jobs/{{base}}.h.mustache b/lib/jobs/{{base}}.h.mustache index 941662de..f49945d4 100644 --- a/lib/jobs/{{base}}.h.mustache +++ b/lib/jobs/{{base}}.h.mustache @@ -16,8 +16,8 @@ namespace QMatrixClient struct {{name}}{{#parents?}} : {{#parents}}{{name}}{{#@join}}, {{/@join}}{{/parents}}{{/parents?}} { {{#vars}}{{dataType.name}} {{nameCamelCase}}; - {{/vars}} - }; + {{/vars}}{{! +}} }; QJsonObject toJson(const {{name}}& pod); |