diff options
author | glx <glx@openttd.org> | 2019-12-17 19:14:42 +0100 |
---|---|---|
committer | Niels Martin Hansen <nielsm@indvikleren.dk> | 2019-12-21 20:13:03 +0100 |
commit | 869581eb238b820574d64cd8dabc9324cd7a0dd5 (patch) | |
tree | b6d3937c8da8ad0f3b477601bb01e05d4c647cec /src/signs.cpp | |
parent | b91abd3af98cca51221210198e2c9607055c19b2 (diff) | |
download | openttd-869581eb238b820574d64cd8dabc9324cd7a0dd5.tar.xz |
Codechange: Replace FOR_ALL_SIGNS with range-based for loops
Diffstat (limited to 'src/signs.cpp')
-rw-r--r-- | src/signs.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/signs.cpp b/src/signs.cpp index c42644269..f477ab764 100644 --- a/src/signs.cpp +++ b/src/signs.cpp @@ -59,9 +59,7 @@ void Sign::UpdateVirtCoord() /** Update the coordinates of all signs */ void UpdateAllSignVirtCoords() { - Sign *si; - - FOR_ALL_SIGNS(si) { + for (Sign *si : Sign::Iterate()) { si->UpdateVirtCoord(); } } |