summaryrefslogtreecommitdiff
path: root/src/company_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-05-13 10:14:29 +0000
committerrubidium <rubidium@openttd.org>2010-05-13 10:14:29 +0000
commit062dd0e24c283f210216ede06bbde0ed72c7ed25 (patch)
treea917e975f1f5d4c144ecad2c799cf58764a1f592 /src/company_gui.cpp
parenta2d6961ab3c9aa43b95dfe9fa4699d290e5627e2 (diff)
downloadopenttd-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/company_gui.cpp')
-rw-r--r--src/company_gui.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/company_gui.cpp b/src/company_gui.cpp
index c4e7b5e51..9b3cb1ee9 100644
--- a/src/company_gui.cpp
+++ b/src/company_gui.cpp
@@ -34,12 +34,10 @@
#include "table/strings.h"
/** Company GUI constants. */
-enum {
- FIRST_GUI_CALL = INT_MAX, ///< default value to specify this is the first call of the resizable gui
+static const int FIRST_GUI_CALL = INT_MAX; ///< default value to specify this is the first call of the resizable gui
- EXP_LINESPACE = 2, ///< Amount of vertical space for a horizontal (sub-)total line.
- EXP_BLOCKSPACE = 10, ///< Amount of vertical space between two blocks of numbers.
-};
+static const uint EXP_LINESPACE = 2; ///< Amount of vertical space for a horizontal (sub-)total line.
+static const uint EXP_BLOCKSPACE = 10; ///< Amount of vertical space between two blocks of numbers.
static void DoSelectCompanyManagerFace(Window *parent);