qmake: remove use of Java-style iterators

They will be deprecated, so qmake wouldn't compile anymore.

Change-Id: I42212fdf213df696d736ed34458f7e79bd902dd5
Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
Marc Mutz 2017-12-18 12:53:05 +01:00
parent 0efc6a88b6
commit 4b09d5a78d

View File

@ -1231,9 +1231,7 @@ ProjectBuilderMakefileGenerator::writeMakeParts(QTextStream &t)
<< "\t\t\t" << writeSettings("runOnlyForDeploymentPostprocessing", "0", SettingsNoQuote) << ";\n" << "\t\t\t" << writeSettings("runOnlyForDeploymentPostprocessing", "0", SettingsNoQuote) << ";\n"
<< "\t\t};\n"; << "\t\t};\n";
QMapIterator<ProString, ProStringList> it(embedded_plugins); for (auto it = embedded_plugins.cbegin(), end = embedded_plugins.cend(); it != end; ++it) {
while (it.hasNext()) {
it.next();
QString suffix = !it.key().isEmpty() ? (" (" + it.key() + ")") : QString(); QString suffix = !it.key().isEmpty() ? (" (" + it.key() + ")") : QString();
QString grp3("Embed PlugIns" + suffix), key3 = keyFor(grp3); QString grp3("Embed PlugIns" + suffix), key3 = keyFor(grp3);
project->values("QMAKE_PBX_BUILDPHASES").append(key3); project->values("QMAKE_PBX_BUILDPHASES").append(key3);