diff options
author | glx22 <glx@openttd.org> | 2021-06-13 04:18:21 +0200 |
---|---|---|
committer | Loïc Guilloux <glx22@users.noreply.github.com> | 2021-07-09 21:36:09 +0200 |
commit | 89ab8b79a51b4963da55dce195ea1ab520c73b50 (patch) | |
tree | f0ba92ca28e0a322ea277568ee3a75a276e3ae52 /src/station_gui.cpp | |
parent | 5844027eb8588197d82fe896f027182621c4f923 (diff) | |
download | openttd-89ab8b79a51b4963da55dce195ea1ab520c73b50.tar.xz |
Codechange: Remove FOR_EACH_SET_BIT
Diffstat (limited to 'src/station_gui.cpp')
-rw-r--r-- | src/station_gui.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/station_gui.cpp b/src/station_gui.cpp index 1b64d8aee..e36978c37 100644 --- a/src/station_gui.cpp +++ b/src/station_gui.cpp @@ -560,8 +560,7 @@ public: ToggleBit(this->facilities, widget - WID_STL_TRAIN); this->ToggleWidgetLoweredState(widget); } else { - uint i; - FOR_EACH_SET_BIT(i, this->facilities) { + for (uint i : SetBitIterator(this->facilities)) { this->RaiseWidget(i + WID_STL_TRAIN); } this->facilities = 1 << (widget - WID_STL_TRAIN); |