From 0a8f93268b0ee847ac0cf6e8216a4939b02e3996 Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Mon, 29 Jul 2013 13:41:08 +0200 Subject: [PATCH] ProjectExplorer: Add convenience function BuildStepList::appendStep(). In most cases, there is no value in writing out the index explicitly, and it is downright annoying when adding steps conditionally. Change-Id: I2a3947d3dbc11364046c0917c661497d0720725a Reviewed-by: Tobias Hunger --- src/plugins/projectexplorer/buildsteplist.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/projectexplorer/buildsteplist.h b/src/plugins/projectexplorer/buildsteplist.h index 1f0151ed860..bf3d697ed40 100644 --- a/src/plugins/projectexplorer/buildsteplist.h +++ b/src/plugins/projectexplorer/buildsteplist.h @@ -58,6 +58,7 @@ public: bool contains(const Core::Id id) const; void insertStep(int position, BuildStep *step); + void appendStep(BuildStep *step) { insertStep(count(), step); } bool removeStep(int position); void moveStepUp(int position); BuildStep *at(int position);