From 4e302b7d83611ab20babfc44429d024048871085 Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Tue, 3 Jul 2018 20:09:33 +0900 Subject: Experimental usage of QStringLiteral with a raw string literal --- lib/connection.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(BackgroundRequest, d->data->lastEvent(), filter, timeout); connect( job, &SyncJob::success, this, [this, job] { -- cgit v1.2.3