Drop Qt foreach.
Replaced with the ranged-for loop. Using QT_NO_FOREACH to enforce it. Qt 5.7.1 required.
This commit is contained in:
@@ -96,7 +96,7 @@ QStringList ShellCommand::expand(const QStringList & items)
|
||||
{
|
||||
QStringList result;
|
||||
|
||||
foreach(const QString &item, items ) {
|
||||
for(const QString &item : items) {
|
||||
result << expand(item);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user