summaryrefslogtreecommitdiff
path: root/src/town_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-05-13 09:44:44 +0000
committerrubidium <rubidium@openttd.org>2010-05-13 09:44:44 +0000
commit398418b8fa23ab59f5fc027a7dd6aeba9da4d7bb (patch)
tree54de30f4702263ee1489af162d6da840e35c0a87 /src/town_gui.cpp
parent793b0f0736ac543fb1f6a7e9a4bfd678891e7374 (diff)
downloadopenttd-398418b8fa23ab59f5fc027a7dd6aeba9da4d7bb.tar.xz
(svn r19812) -Codechange: give some unnamed enums a name or, in case they consisted of unrelated values use static const (u)int
Diffstat (limited to 'src/town_gui.cpp')
-rw-r--r--src/town_gui.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/town_gui.cpp b/src/town_gui.cpp
index f2e5bebfb..02ea76b6a 100644
--- a/src/town_gui.cpp
+++ b/src/town_gui.cpp
@@ -312,9 +312,7 @@ private:
Town *town; ///< Town displayed by the window.
public:
- enum {
- TVW_HEIGHT_NORMAL = 150,
- };
+ static const int TVW_HEIGHT_NORMAL = 150;
TownViewWindow(const WindowDesc *desc, WindowNumber window_number) : Window()
{