Codechange: Replace station related FOR_ALL with range-based for loops
This commit is contained in:
@@ -56,8 +56,7 @@ void LinkGraphOverlay::RebuildCache()
|
||||
DrawPixelInfo dpi;
|
||||
this->GetWidgetDpi(&dpi);
|
||||
|
||||
const Station *sta;
|
||||
FOR_ALL_STATIONS(sta) {
|
||||
for (const Station *sta : Station::Iterate()) {
|
||||
if (sta->rect.IsEmpty()) continue;
|
||||
|
||||
Point pta = this->GetStationMiddle(sta);
|
||||
|
Reference in New Issue
Block a user