Replace foreach (deprecated) with range-for

The code compiles and konsole seems to work as bofore.
This commit is contained in:
Ahmad Samir
2019-12-01 13:35:37 +02:00
parent 686a14da0d
commit 5f60bc5a6f
16 changed files with 102 additions and 78 deletions

View File

@@ -76,7 +76,7 @@ QStringList ShellCommand::expand(const QStringList &items)
QStringList result;
result.reserve(items.size());
foreach (const QString &item, items) {
for (const QString &item : items) {
result << expand(item);
}