forked from qt-creator/qt-creator
ProjectExplorer: Collapse BuildInfo hierarchy
... to pass it around as real values, avoiding, among others, the need of occasional explicit deletion. The formerly extra members of the derived stuff are handled via an extra variant (for data) and via a functor in the build configuration factory. The change is mechanical. Change-Id: I19ca4e0c5f0a5b196fc16dfb98bb005dc679f855 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -493,14 +493,10 @@ void Target::updateDefaultBuildConfigurations()
|
||||
qWarning("No build configuration factory found for target id '%s'.", qPrintable(id().toString()));
|
||||
return;
|
||||
}
|
||||
QList<BuildInfo *> infoList = bcFactory->availableSetups(this->kit(), project()->projectFilePath().toString());
|
||||
foreach (BuildInfo *info, infoList) {
|
||||
BuildConfiguration *bc = bcFactory->create(this, info);
|
||||
if (!bc)
|
||||
continue;
|
||||
addBuildConfiguration(bc);
|
||||
for (const BuildInfo &info : bcFactory->allAvailableSetups(kit(), project()->projectFilePath().toString())) {
|
||||
if (BuildConfiguration *bc = bcFactory->create(this, info))
|
||||
addBuildConfiguration(bc);
|
||||
}
|
||||
qDeleteAll(infoList);
|
||||
}
|
||||
|
||||
void Target::updateDefaultDeployConfigurations()
|
||||
|
||||
Reference in New Issue
Block a user