aboutsummaryrefslogtreecommitdiff
path: root/lib/connection.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-07-03 20:09:33 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-07-04 07:51:48 +0900
commit4e302b7d83611ab20babfc44429d024048871085 (patch)
tree048a60669ed07fe63ca9aecc96c0758aa93c494a /lib/connection.cpp
parenteaca25fd5115ab00a29b7d47dfc6e16cbfd5e552 (diff)
downloadlibquotient-4e302b7d83611ab20babfc44429d024048871085.tar.gz
libquotient-4e302b7d83611ab20babfc44429d024048871085.zip
Experimental usage of QStringLiteral with a raw string literal
Diffstat (limited to 'lib/connection.cpp')
-rw-r--r--lib/connection.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/connection.cpp b/lib/connection.cpp
index d363b433..381d97c2 100644
--- a/lib/connection.cpp
+++ b/lib/connection.cpp
@@ -263,7 +263,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] {