forked from qt-creator/qt-creator
ProjectExplorer: Replace a few foreach()
Change-Id: I445cdfaac13ac894be3cd6fc8c20b4a09f460a01 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -323,7 +323,7 @@ void SessionManager::setActiveBuildConfiguration(Target *target, BuildConfigurat
|
||||
if (!otherTarget || otherTarget->kit()->id() != kitId)
|
||||
continue;
|
||||
|
||||
foreach (BuildConfiguration *otherBc, otherTarget->buildConfigurations()) {
|
||||
for (BuildConfiguration *otherBc : otherTarget->buildConfigurations()) {
|
||||
if (otherBc->displayName() == name) {
|
||||
otherTarget->setActiveBuildConfiguration(otherBc);
|
||||
break;
|
||||
@@ -351,7 +351,7 @@ void SessionManager::setActiveDeployConfiguration(Target *target, DeployConfigur
|
||||
if (!otherTarget || otherTarget->kit()->id() != kitId)
|
||||
continue;
|
||||
|
||||
foreach (DeployConfiguration *otherDc, otherTarget->deployConfigurations()) {
|
||||
for (DeployConfiguration *otherDc : otherTarget->deployConfigurations()) {
|
||||
if (otherDc->displayName() == name) {
|
||||
otherTarget->setActiveDeployConfiguration(otherDc);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user