[kcmdeco] No QStringLiteral in a Q_FOREACH

Interesting compile error. Switching to modern for loop fixes the
issue.
This commit is contained in:
Martin Gräßlin 2013-10-01 08:11:17 +02:00
parent 0efe2462ee
commit f402fb9ea2

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