Commit 0e4148bc authored by Laurent Montel's avatar Laurent Montel 😁

Port foreach

parent 16923884
......@@ -294,7 +294,7 @@ QStringList ScriptEngine::pendingUpdateScripts(Plasma::Corona *corona)
QStringList scripts;
const QStringList dirs = QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, "plasma/shells/" + appName + QStringLiteral("/contents/updates"), QStandardPaths::LocateDirectory);
Q_FOREACH(const QString& dir, dirs) {
for (const QString& dir : dirs) {
QDirIterator it(dir, QStringList() << QStringLiteral("*.js"));
while (it.hasNext()) {
scripts.append(it.next());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment