diff options
author | glx <glx@openttd.org> | 2019-12-17 01:35:29 +0100 |
---|---|---|
committer | Niels Martin Hansen <nielsm@indvikleren.dk> | 2019-12-21 20:13:03 +0100 |
commit | 9892d90b26db4dfe97ec7baeb89e43acb53a178e (patch) | |
tree | c4cbee86584e50e85c419aed6aa912fe1b6ebf37 /src/station_cmd.cpp | |
parent | 41232f18c18c9ca444282a9e959b7dfd6c93eff5 (diff) | |
download | openttd-9892d90b26db4dfe97ec7baeb89e43acb53a178e.tar.xz |
Codechange: Replace order related FOR_ALL with range-based for loops
Diffstat (limited to 'src/station_cmd.cpp')
-rw-r--r-- | src/station_cmd.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp index 126e6fd9d..4b2acb2db 100644 --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -3664,9 +3664,8 @@ void DeleteStaleLinks(Station *from) if (auto_distributed) { /* Have all vehicles refresh their next hops before deciding to * remove the node. */ - OrderList *l; std::vector<Vehicle *> vehicles; - FOR_ALL_ORDER_LISTS(l) { + for (OrderList *l : OrderList::Iterate()) { bool found_from = false; bool found_to = false; for (Order *order = l->GetFirstOrder(); order != nullptr; order = order->next) { |