forked from mirror/OpenTTD
Codechange: Make all NWidgetPart arrays constexpr.
This ensures that the arrays are not created at runtime and prevents using non-constexpr values.
This commit is contained in:
@@ -46,7 +46,7 @@
|
||||
*/
|
||||
|
||||
/** Nested widget definition for train depots. */
|
||||
static const NWidgetPart _nested_train_depot_widgets[] = {
|
||||
static constexpr NWidgetPart _nested_train_depot_widgets[] = {
|
||||
NWidget(NWID_HORIZONTAL),
|
||||
NWidget(WWT_CLOSEBOX, COLOUR_GREY),
|
||||
NWidget(NWID_SELECTION, INVALID_COLOUR, WID_D_SHOW_RENAME), // rename button
|
||||
|
Reference in New Issue
Block a user