Changeset View
Changeset View
Standalone View
Standalone View
kded/osd.cpp
Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Line(s) | |||||
50 | } | 50 | } | ||
51 | 51 | | |||
52 | bool Osd::initOsd() | 52 | bool Osd::initOsd() | ||
53 | { | 53 | { | ||
54 | if (m_osdObject) { | 54 | if (m_osdObject) { | ||
55 | return true; | 55 | return true; | ||
56 | } | 56 | } | ||
57 | 57 | | |||
58 | const QString &osdPath = QStandardPaths::locate(QStandardPaths::QStandardPaths::GenericDataLocation, QStringLiteral("kded_kscreen/qml/Osd.qml")); | 58 | QString osdPath = QStandardPaths::locate(QStandardPaths::QStandardPaths::GenericDataLocation, QStringLiteral("kded_kscreen/qml/Osd.qml")); | ||
zzag: Please keep `const`. | |||||
59 | if (osdPath.isEmpty()) { | 59 | if (osdPath.isEmpty()) { | ||
60 | qCWarning(KSCREEN_KDED) << "Failed to find OSD QML file" << osdPath; | 60 | qCWarning(KSCREEN_KDED) << "Failed to find OSD QML file" << osdPath; | ||
61 | return false; | 61 | return false; | ||
62 | } | 62 | } | ||
63 | 63 | | |||
64 | m_osdObject = new KDeclarative::QmlObject(this); | 64 | m_osdObject = new KDeclarative::QmlObject(this); | ||
65 | m_osdObject->setSource(QUrl::fromLocalFile(osdPath)); | 65 | m_osdObject->setSource(QUrl::fromLocalFile(osdPath)); | ||
66 | 66 | | |||
▲ Show 20 Lines • Show All 146 Lines • Show Last 20 Lines |
Please keep const.