aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/search.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-06-08 23:24:51 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-06-08 23:24:51 +0900
commit6767cb8eccea7b74531f59f165a28afa0bec61f4 (patch)
treeea3ffe2fc07d3a9b7b48ee2ab37b0fe594f1af85 /lib/csapi/search.cpp
parent4b1b308f28bdaef598a5dfc249d7af6a0346b367 (diff)
downloadlibquotient-6767cb8eccea7b74531f59f165a28afa0bec61f4.tar.gz
libquotient-6767cb8eccea7b74531f59f165a28afa0bec61f4.zip
csapi: Fix boolean query parameters incorrectly passed
Diffstat (limited to 'lib/csapi/search.cpp')
-rw-r--r--lib/csapi/search.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/csapi/search.cpp b/lib/csapi/search.cpp
index d43f704b..d172dfbe 100644
--- a/lib/csapi/search.cpp
+++ b/lib/csapi/search.cpp
@@ -173,8 +173,7 @@ class SearchJob::Private
BaseJob::Query queryToSearch(const QString& nextBatch)
{
BaseJob::Query _q;
- if (!nextBatch.isEmpty())
- _q.addQueryItem("next_batch", nextBatch);
+ addToQuery<IfNotEmpty>(_q, "next_batch", nextBatch);
return _q;
}