Codechange: Replace FOR_ALL_GROUPS with range-based for loops
This commit is contained in:
@@ -178,8 +178,7 @@ private:
|
||||
|
||||
GUIGroupList list;
|
||||
|
||||
const Group *g;
|
||||
FOR_ALL_GROUPS(g) {
|
||||
for (const Group *g : Group::Iterate()) {
|
||||
if (g->owner == owner && g->vehicle_type == this->vli.vtype) {
|
||||
list.push_back(g);
|
||||
}
|
||||
|
Reference in New Issue
Block a user