Codechange: Specify underlying type for all enums excluding those exposed to scripts. (#13383)
This commit is contained in:
@@ -1934,13 +1934,13 @@ void BaseVehicleListWindow::UpdateVehicleGroupBy(GroupBy group_by)
|
||||
struct VehicleListWindow : public BaseVehicleListWindow {
|
||||
private:
|
||||
/** Enumeration of planes of the button row at the bottom. */
|
||||
enum ButtonPlanes {
|
||||
enum ButtonPlanes : uint8_t {
|
||||
BP_SHOW_BUTTONS, ///< Show the buttons.
|
||||
BP_HIDE_BUTTONS, ///< Show the empty panel.
|
||||
};
|
||||
|
||||
/** Enumeration of planes of the title row at the top. */
|
||||
enum CaptionPlanes {
|
||||
enum CaptionPlanes : uint8_t {
|
||||
BP_NORMAL, ///< Show shared orders caption and buttons.
|
||||
BP_SHARED_ORDERS, ///< Show the normal caption.
|
||||
};
|
||||
@@ -2961,7 +2961,7 @@ static const int VV_INITIAL_VIEWPORT_HEIGHT = 84;
|
||||
static const int VV_INITIAL_VIEWPORT_HEIGHT_TRAIN = 102;
|
||||
|
||||
/** Command indices for the _vehicle_command_translation_table. */
|
||||
enum VehicleCommandTranslation {
|
||||
enum VehicleCommandTranslation : uint8_t {
|
||||
VCT_CMD_START_STOP = 0,
|
||||
VCT_CMD_CLONE_VEH,
|
||||
VCT_CMD_TURN_AROUND,
|
||||
@@ -3033,7 +3033,7 @@ static bool IsVehicleRefitable(const Vehicle *v)
|
||||
struct VehicleViewWindow : Window {
|
||||
private:
|
||||
/** Display planes available in the vehicle view window. */
|
||||
enum PlaneSelections {
|
||||
enum PlaneSelections : uint8_t {
|
||||
SEL_DC_GOTO_DEPOT, ///< Display 'goto depot' button in #WID_VV_SELECT_DEPOT_CLONE stacked widget.
|
||||
SEL_DC_CLONE, ///< Display 'clone vehicle' button in #WID_VV_SELECT_DEPOT_CLONE stacked widget.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user