aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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] {