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/toolbar_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/toolbar_gui.cpp')
-rw-r--r-- | src/toolbar_gui.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/toolbar_gui.cpp b/src/toolbar_gui.cpp index a0d4427fa..b690f0ac9 100644 --- a/src/toolbar_gui.cpp +++ b/src/toolbar_gui.cpp @@ -211,11 +211,9 @@ static void PopupMainToolbMenu(Window *w, int widget, StringID string, int count } /** Enum for the Company Toolbar's network related buttons */ -enum { - CTMN_CLIENT_LIST = -1, ///< Show the client list - CTMN_NEW_COMPANY = -2, ///< Create a new company - CTMN_SPECTATE = -3, ///< Become spectator -}; +static const int CTMN_CLIENT_LIST = -1; ///< Show the client list +static const int CTMN_NEW_COMPANY = -2; ///< Create a new company +static const int CTMN_SPECTATE = -3; ///< Become spectator /** * Pop up a generic company list menu. |