forked from qt-creator/qt-creator
ProjectExplorer: Pass Id to BuildStep constructor
Allows to use constants in fewer places, similar to what e.g. RunConfiguration does. Change-Id: I9d049128206c4acf0ce14b06b66d6c090a7c5242 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -49,8 +49,8 @@ namespace Internal {
|
||||
// QbsCleanStep:
|
||||
// --------------------------------------------------------------------
|
||||
|
||||
QbsCleanStep::QbsCleanStep(ProjectExplorer::BuildStepList *bsl) :
|
||||
ProjectExplorer::BuildStep(bsl, Constants::QBS_CLEANSTEP_ID)
|
||||
QbsCleanStep::QbsCleanStep(BuildStepList *bsl, Core::Id id)
|
||||
: BuildStep(bsl, id)
|
||||
{
|
||||
setDisplayName(tr("Qbs Clean"));
|
||||
|
||||
@@ -153,11 +153,6 @@ void QbsCleanStep::createTaskAndOutput(ProjectExplorer::Task::TaskType type, con
|
||||
emit addOutput(message, OutputFormat::Stdout);
|
||||
}
|
||||
|
||||
QbsBuildSystem *QbsCleanStep::qbsBuildSystem() const
|
||||
{
|
||||
return static_cast<QbsBuildSystem *>(buildSystem());
|
||||
}
|
||||
|
||||
// --------------------------------------------------------------------
|
||||
// QbsCleanStepFactory:
|
||||
// --------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user