diff options
author | frosch <frosch@openttd.org> | 2021-05-09 17:10:07 +0200 |
---|---|---|
committer | frosch <github@elsenhans.name> | 2021-05-12 23:22:41 +0200 |
commit | f96f11395162a8d57f5fdcef18c7a64f7acf76f8 (patch) | |
tree | 3bd204df568095710d745b6bcb70cd231f8e928b /src/window_gui.h | |
parent | 22567a1f43d29a7596b9ef88441d5a65776fa2c8 (diff) | |
download | openttd-f96f11395162a8d57f5fdcef18c7a64f7acf76f8.tar.xz |
Codechange: use IterateFromBack/Front only if the order is important.
Use Iterate if the order does not matter.
Diffstat (limited to 'src/window_gui.h')
-rw-r--r-- | src/window_gui.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/window_gui.h b/src/window_gui.h index 7f7ab2667..2b7c69367 100644 --- a/src/window_gui.h +++ b/src/window_gui.h @@ -853,6 +853,7 @@ public: WindowIterator<Tfront> begin() { return WindowIterator<Tfront>(Tfront ? _z_front_window : _z_back_window); } WindowIterator<Tfront> end() { return WindowIterator<Tfront>(nullptr); } }; + using Iterate = AllWindows<false>; //!< Iterate all windows in whatever order is easiest. using IterateFromBack = AllWindows<false>; //!< Iterate all windows in Z order from back to front. using IterateFromFront = AllWindows<true>; //!< Iterate all windows in Z order from front to back. }; |