[kcmdeco] No QStringLiteral in a Q_FOREACH

Interesting compile error. Switching to modern for loop fixes the
issue.
icc-effect-5.14.5
Martin Gräßlin 2013-10-01 08:11:17 +02:00
parent 0efe2462ee
commit f402fb9ea2
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}