diff options
author | rubidium <rubidium@openttd.org> | 2010-05-13 10:14:29 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-05-13 10:14:29 +0000 |
commit | 062dd0e24c283f210216ede06bbde0ed72c7ed25 (patch) | |
tree | a917e975f1f5d4c144ecad2c799cf58764a1f592 /src/statusbar_gui.cpp | |
parent | a2d6961ab3c9aa43b95dfe9fa4699d290e5627e2 (diff) | |
download | openttd-062dd0e24c283f210216ede06bbde0ed72c7ed25.tar.xz |
(svn r19814) -Codechange: give some more unnamed enums a name, in case they consisted of unrelated values use static const (u)int
Diffstat (limited to 'src/statusbar_gui.cpp')
-rw-r--r-- | src/statusbar_gui.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/statusbar_gui.cpp b/src/statusbar_gui.cpp index f8d853937..c83203212 100644 --- a/src/statusbar_gui.cpp +++ b/src/statusbar_gui.cpp @@ -83,12 +83,10 @@ struct StatusBarWindow : Window { int ticker_scroll; int reminder_timeout; - enum { - TICKER_STOP = 1640, ///< scrolling is finished when counter reaches this value - REMINDER_START = 91, ///< initial value of the reminder counter (right dot on the right) - REMINDER_STOP = 0, ///< reminder disappears when counter reaches this value - COUNTER_STEP = 2, ///< this is subtracted from active counters every tick - }; + static const int TICKER_STOP = 1640; ///< scrolling is finished when counter reaches this value + static const int REMINDER_START = 91; ///< initial value of the reminder counter (right dot on the right) + static const int REMINDER_STOP = 0; ///< reminder disappears when counter reaches this value + static const int COUNTER_STEP = 2; ///< this is subtracted from active counters every tick StatusBarWindow(const WindowDesc *desc) : Window() { |