diff options
author | Darkvater <Darkvater@openttd.org> | 2006-12-07 13:00:41 +0000 |
---|---|---|
committer | Darkvater <Darkvater@openttd.org> | 2006-12-07 13:00:41 +0000 |
commit | 616028a453d0ebe935149e706bf258b8c91404d2 (patch) | |
tree | 672fd70fa939851f30d0469c319011f86230d248 | |
parent | 6049734c069365078564a30564512b4482289b7d (diff) | |
download | openttd-616028a453d0ebe935149e706bf258b8c91404d2.tar.xz |
(svn r7415) -Codechange: Don't use typedef enum for simple widget enumerators when we will never use
their type anyways.
-rw-r--r-- | build_vehicle_gui.c | 4 | ||||
-rw-r--r-- | player_gui.c | 4 | ||||
-rw-r--r-- | train_gui.c | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/build_vehicle_gui.c b/build_vehicle_gui.c index ce6ba8c0f..ad9c070dd 100644 --- a/build_vehicle_gui.c +++ b/build_vehicle_gui.c @@ -23,7 +23,7 @@ #include "strings.h" -typedef enum BuildVehicleWidgets { +enum BuildVehicleWidgets { BUILD_VEHICLE_WIDGET_CLOSEBOX = 0, BUILD_VEHICLE_WIDGET_CAPTION, BUILD_VEHICLE_WIDGET_SORT_ASSENDING_DESCENDING, @@ -35,7 +35,7 @@ typedef enum BuildVehicleWidgets { BUILD_VEHICLE_WIDGET_BUILD, BUILD_VEHICLE_WIDGET_RENAME, BUILD_VEHICLE_WIDGET_RESIZE, -} BuildVehicleWidget; +}; static const Widget _build_vehicle_widgets[] = { { WWT_CLOSEBOX, RESIZE_NONE, 14, 0, 10, 0, 13, STR_00C5, STR_018B_CLOSE_WINDOW }, diff --git a/player_gui.c b/player_gui.c index a1366c12a..e7bb30609 100644 --- a/player_gui.c +++ b/player_gui.c @@ -559,7 +559,7 @@ static const WindowDesc _select_player_face_desc = { }; /* Names of the widgets. Keep them in the same order as in the widget array */ -typedef enum PlayerCompanyWindowWidgets { +enum PlayerCompanyWindowWidgets { PCW_WIDGET_CLOSEBOX = 0, PCW_WIDGET_CAPTION, PCW_WIDGET_FACE, @@ -572,7 +572,7 @@ typedef enum PlayerCompanyWindowWidgets { PCW_WIDGET_BUY_SHARE, PCW_WIDGET_SELL_SHARE, PCW_WIDGET_COMPANY_PASSWORD, -} PlayerCompanyWindowWidget; +}; static const Widget _player_company_widgets[] = { { WWT_CLOSEBOX, RESIZE_NONE, 14, 0, 10, 0, 13, STR_00C5, STR_018B_CLOSE_WINDOW}, diff --git a/train_gui.c b/train_gui.c index 8acef3706..cc2f4609b 100644 --- a/train_gui.c +++ b/train_gui.c @@ -24,7 +24,7 @@ #include "date.h" #include "strings.h" -typedef enum BuildTrainWidgets { +enum BuildTrainWidgets { BUILD_TRAIN_WIDGET_CLOSEBOX = 0, BUILD_TRAIN_WIDGET_CAPTION, BUILD_TRAIN_WIDGET_SORT_ASCENDING_DESCENDING, @@ -36,7 +36,7 @@ typedef enum BuildTrainWidgets { BUILD_TRAIN_WIDGET_BUILD, BUILD_TRAIN_WIDGET_RENAME, BUILD_TRAIN_WIDGET_RESIZE, -} BuildTrainWidget; +}; static const Widget _new_rail_vehicle_widgets[] = { { WWT_CLOSEBOX, RESIZE_NONE, 14, 0, 10, 0, 13, STR_00C5, STR_018B_CLOSE_WINDOW}, |