forked from qt-creator/qt-creator
ProjectExplorer: Simplify BuildManager::buildList() calls
The build list names are always the ones determined from the build list id. No need to do that on the caller side. Change-Id: Icc21ef355de535af21215819fe04daa76fed0d9c Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
@@ -167,7 +167,6 @@ FileName CMakeBuildConfiguration::shadowBuildDirectory(const FileName &projectFi
|
||||
void CMakeBuildConfiguration::buildTarget(const QString &buildTarget)
|
||||
{
|
||||
const Core::Id buildStep = ProjectExplorer::Constants::BUILDSTEPS_BUILD;
|
||||
const QString name = ProjectExplorer::ProjectExplorerPlugin::displayNameForStepId(buildStep);
|
||||
CMakeBuildStep *cmBs
|
||||
= qobject_cast<CMakeBuildStep *>(Utils::findOrDefault(stepList(buildStep)->steps(),
|
||||
[](const ProjectExplorer::BuildStep *bs) {
|
||||
@@ -180,7 +179,7 @@ void CMakeBuildConfiguration::buildTarget(const QString &buildTarget)
|
||||
cmBs->setBuildTarget(buildTarget);
|
||||
}
|
||||
|
||||
BuildManager::buildList(stepList(buildStep), name);
|
||||
BuildManager::buildList(stepList(buildStep));
|
||||
|
||||
if (cmBs)
|
||||
cmBs->setBuildTarget(originalBuildTarget);
|
||||
|
||||
Reference in New Issue
Block a user