summaryrefslogtreecommitdiff
path: root/src/company_gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/company_gui.cpp')
-rw-r--r--src/company_gui.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/company_gui.cpp b/src/company_gui.cpp
index a705687b0..6b67f373b 100644
--- a/src/company_gui.cpp
+++ b/src/company_gui.cpp
@@ -640,11 +640,11 @@ private:
void AddChildren(GUIGroupList *source, GroupID parent, int indent)
{
- for (const Group **g = source->Begin(); g != source->End(); g++) {
- if ((*g)->parent != parent) continue;
- this->groups.push_back(*g);
+ for (const Group *g : *source) {
+ if (g->parent != parent) continue;
+ this->groups.push_back(g);
this->indents.push_back(indent);
- AddChildren(source, (*g)->index, indent + 1);
+ AddChildren(source, g->index, indent + 1);
}
}