Remove autotoolsBuildConfiguration() from all steps

All of the steps are just using standard buildconfiguration methods.

Change-Id: Ibdef14e0e845e0bfc8828922a985070665e5f172
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
Daniel Teske
2012-11-01 18:15:09 +01:00
parent 4e93ce81a8
commit 3d9ce0f687
8 changed files with 12 additions and 40 deletions

View File

@@ -150,14 +150,9 @@ void AutoreconfStep::ctor()
setDefaultDisplayName(tr("Autoreconf"));
}
AutotoolsBuildConfiguration *AutoreconfStep::autotoolsBuildConfiguration() const
{
return static_cast<AutotoolsBuildConfiguration *>(buildConfiguration());
}
bool AutoreconfStep::init()
{
AutotoolsBuildConfiguration *bc = autotoolsBuildConfiguration();
BuildConfiguration *bc = buildConfiguration();
ProcessParameters *pp = processParameters();
pp->setMacroExpander(bc->macroExpander());
@@ -171,7 +166,7 @@ bool AutoreconfStep::init()
void AutoreconfStep::run(QFutureInterface<bool> &interface)
{
AutotoolsBuildConfiguration *bc = autotoolsBuildConfiguration();
BuildConfiguration *bc = buildConfiguration();
// Check whether we need to run autoreconf
const QFileInfo configureInfo(bc->buildDirectory() + QLatin1String("/configure"));
@@ -267,7 +262,7 @@ QString AutoreconfStepConfigWidget::summaryText() const
void AutoreconfStepConfigWidget::updateDetails()
{
AutotoolsBuildConfiguration *bc = m_autoreconfStep->autotoolsBuildConfiguration();
BuildConfiguration *bc = m_autoreconfStep->buildConfiguration();
ProcessParameters param;
param.setMacroExpander(bc->macroExpander());