diff options
author | dt <qtc-committer@nokia.com> | 2010-03-16 14:36:59 +0100 |
---|---|---|
committer | dt <qtc-committer@nokia.com> | 2010-03-16 17:45:08 +0100 |
commit | 0d4fdd291ab85183c937223a0b33e901023ea448 (patch) | |
tree | c8ad614682e851cb7c41fde8349b9adec40b5fc5 /src/plugins/projectexplorer/buildconfiguration.h | |
parent | 10c3240e406e9784296b3b1a9b9d47e05404fe56 (diff) | |
download | qt-creator-0d4fdd291ab85183c937223a0b33e901023ea448.tar.gz |
Use a type enum instead of duplicating functions between build and clean
That is e.g. buildSteps() and cleanSteps() --> steps(type)
Diffstat (limited to 'src/plugins/projectexplorer/buildconfiguration.h')
-rw-r--r-- | src/plugins/projectexplorer/buildconfiguration.h | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/src/plugins/projectexplorer/buildconfiguration.h b/src/plugins/projectexplorer/buildconfiguration.h index e391e03877..c0bc765771 100644 --- a/src/plugins/projectexplorer/buildconfiguration.h +++ b/src/plugins/projectexplorer/buildconfiguration.h @@ -53,15 +53,10 @@ public: // ctors are protected virtual ~BuildConfiguration(); - QList<BuildStep *> buildSteps() const; - void insertBuildStep(int position, BuildStep *step); - void removeBuildStep(int position); - void moveBuildStepUp(int position); - - QList<BuildStep *> cleanSteps() const; - void insertCleanStep(int position, BuildStep *step); - void removeCleanStep(int position); - void moveCleanStepUp(int position); + QList<BuildStep *> steps(StepType type) const; + void insertStep(StepType type, int position, BuildStep *step); + void removeStep(StepType type, int position); + void moveStepUp(StepType type, int position); virtual QString buildDirectory() const = 0; @@ -90,8 +85,7 @@ protected: virtual bool fromMap(const QVariantMap &map); private: - QList<BuildStep *> m_buildSteps; - QList<BuildStep *> m_cleanSteps; + QList<BuildStep *> m_steps[LastStepType]; Target *m_target; bool m_clearSystemEnvironment; |