diff options
author | Oliver Wolff <oliver.wolff@qt.io> | 2018-01-22 07:10:18 +0100 |
---|---|---|
committer | Tony Sarajärvi <tony.sarajarvi@qt.io> | 2018-01-22 06:19:01 +0000 |
commit | 0d050f36dc74adc3a7e29b1d51ccf55027d9c522 (patch) | |
tree | 357694a594f9d9685d120dc5e561dd1a60ac8fa7 /tests | |
parent | 1cf3a72de0bbd50bdfad0cd2cd21d430f1f6ebb9 (diff) |
Fix MSVC 2010 build
Change-Id: I9f97f699aa3b5de750db25dcc5bf5b1f42f51b32
Reviewed-by: Tony Sarajärvi <tony.sarajarvi@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/postbuild/global.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/postbuild/global.h b/tests/postbuild/global.h index fd5fd2e6..89c14ba6 100644 --- a/tests/postbuild/global.h +++ b/tests/postbuild/global.h @@ -115,7 +115,8 @@ void qt_tests_shared_filter_module_list(const QString &workDir, QHash<QString, Q qt_tests_shared_global_get_modules_pro_lines(modules), &qt_tests_shared_global_get_export_modules); const QStringList keys = modules.keys(); - for (const QString &key : keys) { + for (int i = 0; i < keys.size(); ++i) { + const QString key = keys.at(i); if (!result.contains(modules[key])) modules.remove(key); } |