From f402fb9ea24af42f79990798ca6ce79821db1417 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Tue, 1 Oct 2013 08:11:17 +0200 Subject: [PATCH] [kcmdeco] No QStringLiteral in a Q_FOREACH Interesting compile error. Switching to modern for loop fixes the issue. --- kcmkwin/kwindecoration/decorationmodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kcmkwin/kwindecoration/decorationmodel.cpp b/kcmkwin/kwindecoration/decorationmodel.cpp index 301e7806b7..9a2070d9b4 100644 --- a/kcmkwin/kwindecoration/decorationmodel.cpp +++ b/kcmkwin/kwindecoration/decorationmodel.cpp @@ -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); } }