From a323dc37accd7556492cc165208965275fb387b3 Mon Sep 17 00:00:00 2001 From: Henry Wilson Date: Sat, 30 Dec 2017 23:47:29 +0000 Subject: [PATCH 11/31] VehicleGroupWindow::indents ~> std::vector --- src/group_gui.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/group_gui.cpp b/src/group_gui.cpp index d3e1eafbb..d096da6ce 100644 --- a/src/group_gui.cpp +++ b/src/group_gui.cpp @@ -118,7 +118,7 @@ private: uint tiny_step_height; ///< Step height for the group list Scrollbar *group_sb; - SmallVector indents; ///< Indentation levels + std::vector indents; ///< Indentation levels Dimension column_size[VGC_END]; ///< Size of the columns in the group list. @@ -127,7 +127,7 @@ private: for (const Group **g = source->Begin(); g != source->End(); g++) { if ((*g)->parent == parent) { *this->groups.Append() = *g; - *this->indents.Append() = indent; + this->indents.push_back(indent); AddParents(source, (*g)->index, indent + 1); } } @@ -166,7 +166,7 @@ private: if (!this->groups.NeedRebuild()) return; this->groups.Clear(); - this->indents.Clear(); + this->indents.clear(); GUIGroupList list; -- 2.14.1