Skip to content

Commit

Permalink
Codechange: Use { } around single-line FOR_ALL_xxx loops.
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterN committed Mar 3, 2019
1 parent be29d94 commit 3daef4e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/station.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -368,9 +368,9 @@ static void AddIndustryToDeliver(Industry *ind, Station *st)
void Station::RemoveFromAllNearbyLists()
{
Town *t;
FOR_ALL_TOWNS(t) t->stations_near.erase(this);
FOR_ALL_TOWNS(t) { t->stations_near.erase(this); }
Industry *i;
FOR_ALL_INDUSTRIES(i) i->stations_near.erase(this);
FOR_ALL_INDUSTRIES(i) { i->stations_near.erase(this); }
}

/**
Expand Down Expand Up @@ -441,7 +441,7 @@ void Station::RecomputeCatchment()
/* static */ void Station::RecomputeCatchmentForAll()
{
Station *st;
FOR_ALL_STATIONS(st) st->RecomputeCatchment();
FOR_ALL_STATIONS(st) { st->RecomputeCatchment(); }
}

/************************************************************************/
Expand Down

0 comments on commit 3daef4e

Please sign in to comment.