diff options
Diffstat (limited to 'lib/connection.cpp')
-rw-r--r-- | lib/connection.cpp | 3 |
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] { |