aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/event_context.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/csapi/event_context.cpp')
-rw-r--r--lib/csapi/event_context.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/csapi/event_context.cpp b/lib/csapi/event_context.cpp
index 97494062..37de58ab 100644
--- a/lib/csapi/event_context.cpp
+++ b/lib/csapi/event_context.cpp
@@ -26,8 +26,7 @@ class GetEventContextJob::Private
BaseJob::Query queryToGetEventContext(Omittable<int> limit)
{
BaseJob::Query _q;
- if (limit)
- _q.addQueryItem("limit", QString("%1").arg(limit.value()));
+ addToQuery<IfNotEmpty>(_q, "limit", limit);
return _q;
}