Commit 97f7b9cf authored by Frederik Gladhorn's avatar Frederik Gladhorn

Remove ref from returned QString

Summary:
Let's leave it up to the compiler to eliminate the ref.
Suggested by zzag.

Reviewers: #plasma, davidedmundson

Reviewed By: #plasma, davidedmundson

Subscribers: zzag, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D14152
parent ccbee3e8
......@@ -55,7 +55,7 @@ bool Osd::initOsd()
return true;
}
const QString &osdPath = QStandardPaths::locate(QStandardPaths::QStandardPaths::GenericDataLocation, QStringLiteral("kded_kscreen/qml/Osd.qml"));
const QString osdPath = QStandardPaths::locate(QStandardPaths::QStandardPaths::GenericDataLocation, QStringLiteral("kded_kscreen/qml/Osd.qml"));
if (osdPath.isEmpty()) {
qCWarning(KSCREEN_KDED) << "Failed to find OSD QML file" << osdPath;
return false;
......
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