[kcmdeco] No QStringLiteral in a Q_FOREACH
Interesting compile error. Switching to modern for loop fixes the issue.
This commit is contained in:
parent
0efe2462ee
commit
f402fb9ea2
1 changed files with 1 additions and 1 deletions
|
@ -160,7 +160,7 @@ void DecorationModel::findAuroraeThemes()
|
|||
QStringList themes;
|
||||
const QStringList dirs = QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, "aurorae/themes", QStandardPaths::LocateDirectory);
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue