forked from qt-creator/qt-creator
ProjectExplorer: Simplify use of AbstractProcessStep::init()
1. Systematically check for AbstractProcessStep::init() first in derived classes. 2. Use setupProcessParameters(processParameters()); by default in the base implementation. 3. Drop all re-implementations that are effectively the same. Change-Id: I0ae54dd4909b354672a63ee56d0b7c2ea0732494 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -63,7 +63,6 @@ public:
|
||||
AutogenStep(BuildStepList *bsl, Utils::Id id);
|
||||
|
||||
private:
|
||||
bool init() override;
|
||||
void doRun() override;
|
||||
|
||||
StringAspect *m_additionalArgumentsAspect = nullptr;
|
||||
@@ -98,13 +97,6 @@ AutogenStep::AutogenStep(BuildStepList *bsl, Utils::Id id) : AbstractProcessStep
|
||||
});
|
||||
}
|
||||
|
||||
bool AutogenStep::init()
|
||||
{
|
||||
ProcessParameters *pp = processParameters();
|
||||
setupProcessParameters(pp);
|
||||
return AbstractProcessStep::init();
|
||||
}
|
||||
|
||||
void AutogenStep::doRun()
|
||||
{
|
||||
// Check whether we need to run autogen.sh
|
||||
|
||||
Reference in New Issue
Block a user