mirror of
https://github.com/KDE/konsole.git
synced 2026-06-10 06:55:13 -04:00
Replace foreach (deprecated) with range-for
The code compiles and konsole seems to work as bofore.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user