Commit ccbee3e8 authored by Frederik Gladhorn's avatar Frederik Gladhorn

Use QStringLiteral when a conversion to QString will happen

Summary: In this case we would allocate to create a QString instance since there is no Latin1 overload.

Reviewers: #plasma, apol

Reviewed By: apol

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D14076
parent 5327746f
......@@ -113,7 +113,7 @@ void KScreenDaemon::init()
connect(Device::self(), &Device::lidClosedChanged, this, &KScreenDaemon::lidClosedChanged);
connect(Device::self(), &Device::resumingFromSuspend, this,
[&]() {
KScreen::Log::instance()->setContext(QLatin1String("resuming"));
KScreen::Log::instance()->setContext(QStringLiteral("resuming"));
qCDebug(KSCREEN_KDED) << "Resumed from suspend, checking for screen changes";
// We don't care about the result, we just want to force the backend
// to query XRandR so that it will detect possible changes that happened
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment