aboutsummaryrefslogtreecommitdiff
path: root/jobs/generated/whoami.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-01-05 19:46:41 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-01-09 11:54:42 +0900
commit01806d00977578681a401ad294a957ecec0a3d53 (patch)
treed3fe1b4e4e7b77439046ca2e36a0218226b62fc9 /jobs/generated/whoami.cpp
parent7169338dedbf0184da4c971e7cecb6be13b1d129 (diff)
downloadlibquotient-01806d00977578681a401ad294a957ecec0a3d53.tar.gz
libquotient-01806d00977578681a401ad294a957ecec0a3d53.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/whoami.cpp')
-rw-r--r--jobs/generated/whoami.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/jobs/generated/whoami.cpp b/jobs/generated/whoami.cpp
index d4da99d4..4f7b052c 100644
--- a/jobs/generated/whoami.cpp
+++ b/jobs/generated/whoami.cpp
@@ -20,10 +20,10 @@ class GetTokenOwnerJob::Private
GetTokenOwnerJob::GetTokenOwnerJob()
: BaseJob(HttpVerb::Get, "GetTokenOwnerJob",
- basePath % "/account/whoami",
- Query { }
- ), d(new Private)
-{ }
+ basePath % "/account/whoami")
+ , d(new Private)
+{
+}
GetTokenOwnerJob::~GetTokenOwnerJob() = default;