aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/tools
diff options
context:
space:
mode:
authorDenis Shienkov <denis.shienkov@gmail.com>2017-11-19 13:43:58 +0300
committerJake Petroules <jake.petroules@qt.io>2017-11-24 19:04:25 +0000
commit9757970c477fbd5c81a603b0a5d2106e6db7ca34 (patch)
tree4452a5160a65e61d36e2440b3d9f8c8a9d59329d /tests/auto/tools
parentb0b50c510024f201ec9fed233659ad1f0cfda684 (diff)
Replace 'foreach' macro with range-based 'for'
Change-Id: I34479bc9673d0202363aeba5c7919efc8f0d7287 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'tests/auto/tools')
-rw-r--r--tests/auto/tools/tst_tools.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/tools/tst_tools.cpp b/tests/auto/tools/tst_tools.cpp
index f616aa2f0..9707cb4ff 100644
--- a/tests/auto/tools/tst_tools.cpp
+++ b/tests/auto/tools/tst_tools.cpp
@@ -343,7 +343,7 @@ QString TestTools::setupSettingsDir1()
<< Version(thisVersion.majorVersion(), thisVersion.minorVersion(),
thisVersion.patchLevel() + 1)
<< Version(99, 99, 99);
- foreach (const Version &v, versions) {
+ for (const Version &v : versions) {
const QString settingsDir = baseDir->path() + "/qbs/" + v.toString();
QSettings s(settingsDir + "/qbs.conf",
HostOsInfo::isWindowsHost() ? QSettings::IniFormat : QSettings::NativeFormat);