diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/windeployqt/tst_windeployqt.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/windeployqt/tst_windeployqt.cpp b/tests/auto/windeployqt/tst_windeployqt.cpp index b9d30a50b..c369bdb09 100644 --- a/tests/auto/windeployqt/tst_windeployqt.cpp +++ b/tests/auto/windeployqt/tst_windeployqt.cpp @@ -167,7 +167,8 @@ void tst_windeployqt::deploy() const QChar pathSeparator(QLatin1Char(';')); // ### fixme: Qt 5.6: QDir::listSeparator() const QString origPath = env.value(pathKey); QString newPath; - foreach (const QString &pathElement, origPath.split(pathSeparator, QString::SkipEmptyParts)) { + const QStringList pathElements = origPath.split(pathSeparator, QString::SkipEmptyParts); + for (const QString &pathElement : pathElements) { if (pathElement.compare(qtBinDir, Qt::CaseInsensitive) && !pathElement.contains(QLatin1String("\\lib"), Qt::CaseInsensitive)) { if (!newPath.isEmpty()) |