diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-01-05 19:46:41 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-01-05 19:57:52 +0900 |
commit | ccf2b4dd9d41b39167379669f035b45d656e3633 (patch) | |
tree | a6afb913b58409335809f8ea6a33dd7a16c3f2ca /jobs/generated/versions.cpp | |
parent | ea5cd86a9deacc9a6b57f1c432ad6e51e92de428 (diff) | |
download | libquotient-ccf2b4dd9d41b39167379669f035b45d656e3633.tar.gz libquotient-ccf2b4dd9d41b39167379669f035b45d656e3633.zip |
jobs: expect application/json by default; set query in constructor body; properly convert numbers to strings in query
The query should be set in constructor body because there's no reason to pass non-required parameters into the query.
As for numbers to strings conversion - there was an attempt to use QJsonValue(a).toString() for that. That doesn't work; QJsonValue does not turn numbers to strings.
Diffstat (limited to 'jobs/generated/versions.cpp')
-rw-r--r-- | jobs/generated/versions.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/jobs/generated/versions.cpp b/jobs/generated/versions.cpp index 8ff58365..938c1d34 100644 --- a/jobs/generated/versions.cpp +++ b/jobs/generated/versions.cpp @@ -20,10 +20,10 @@ class GetVersionsJob::Private GetVersionsJob::GetVersionsJob() : BaseJob(HttpVerb::Get, "GetVersionsJob", - basePath % "/versions", - Query { }, Data { }, false - ), d(new Private) -{ } + basePath % "/versions", false) + , d(new Private) +{ +} GetVersionsJob::~GetVersionsJob() = default; |