diff --git a/src/widgets/station_widget.h b/src/widgets/station_widget.h --- a/src/widgets/station_widget.h +++ b/src/widgets/station_widget.h @@ -11,7 +11,7 @@ #define WIDGETS_STATION_WIDGET_H /** Widgets of the #StationViewWindow class. */ -enum StationViewWidgets { +enum StationViewWidgets : WidgetID { WID_SV_CAPTION, ///< Caption of the window. WID_SV_GROUP, ///< label for "group by" WID_SV_GROUP_BY, ///< 'Group by' button @@ -32,7 +32,7 @@ enum StationViewWidgets { }; /** Widgets of the #CompanyStationsWindow class. */ -enum StationListWidgets { +enum StationListWidgets : WidgetID { /* Name starts with ST instead of S, because of collision with SaveLoadWidgets */ WID_STL_CAPTION, ///< Caption of the window. WID_STL_LIST, ///< The main panel, list of stations. @@ -56,7 +56,7 @@ enum StationListWidgets { }; /** Widgets of the #SelectStationWindow class. */ -enum JoinStationWidgets { +enum JoinStationWidgets : WidgetID { WID_JS_CAPTION, // Caption of the window. WID_JS_PANEL, // Main panel. WID_JS_SCROLLBAR, // Scrollbar of the panel.