Utils: Replace foreach with range-based for

Change-Id: I9aeea9c029ffc56cbadc04edd20e9b35b154f986
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Orgad Shaneh
2020-06-13 23:39:57 +03:00
committed by Orgad Shaneh
parent afd6eeed3f
commit 51453936cc
34 changed files with 104 additions and 95 deletions

View File

@@ -301,7 +301,7 @@ static QString quoteWinArgument(const QString &arg)
QString createWinCommandline(const QString &program, const QStringList &args)
{
QString programName = quoteWinCommand(program);
foreach (const QString &arg, args) {
for (const QString &arg : args) {
programName += QLatin1Char(' ');
programName += quoteWinArgument(arg);
}