aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-07-04 09:06:29 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-07-04 09:06:29 +0900
commitd5397fe5ae2ca34d5cfb11394dac17728a2b50ce (patch)
treed3f9723a733e76dff7dfc5dcf4120804ba663877
parentdf164cd856a34d8c1462793a40e56d387389b82f (diff)
parent4e302b7d83611ab20babfc44429d024048871085 (diff)
downloadlibquotient-d5397fe5ae2ca34d5cfb11394dac17728a2b50ce.tar.gz
libquotient-d5397fe5ae2ca34d5cfb11394dac17728a2b50ce.zip
Merge branch 'kitsune-raw-literal-qstringliteral'
-rw-r--r--lib/connection.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/connection.cpp b/lib/connection.cpp
index 1f6cc67a..8fd960b6 100644
--- a/lib/connection.cpp
+++ b/lib/connection.cpp
@@ -268,7 +268,8 @@ void Connection::sync(int timeout)
return;
// Raw string: http://en.cppreference.com/w/cpp/language/string_literal
- const QString filter { R"({"room": { "timeline": { "limit": 100 } } })" };
+ const auto filter =
+ QStringLiteral(R"({"room": { "timeline": { "limit": 100 } } })");
auto job = d->syncJob = callApi<SyncJob>(BackgroundRequest,
d->data->lastEvent(), filter, timeout);
connect( job, &SyncJob::success, this, [this, job] {