[kcmdeco] No QStringLiteral in a Q_FOREACH
Interesting compile error. Switching to modern for loop fixes the issue.icc-effect-5.14.5
parent
0efe2462ee
commit
f402fb9ea2
|
@ -160,7 +160,7 @@ void DecorationModel::findAuroraeThemes()
|
||||||
QStringList themes;
|
QStringList themes;
|
||||||
const QStringList dirs = QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, "aurorae/themes", QStandardPaths::LocateDirectory);
|
const QStringList dirs = QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, "aurorae/themes", QStandardPaths::LocateDirectory);
|
||||||
Q_FOREACH (const QString & dir, dirs) {
|
Q_FOREACH (const QString & dir, dirs) {
|
||||||
Q_FOREACH (const QString & file, QDir(dir).entryList(QStringList() << QStringLiteral("metadata.desktop"))) {
|
for (const QString & file : QDir(dir).entryList(QStringList() << QStringLiteral("metadata.desktop"))) {
|
||||||
themes.append(dir + '/' + file);
|
themes.append(dir + '/' + file);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue