Codechange: Use std::initializer_list for NWidgetPart data. (#14749)
Avoids using C/C++ arrays.
This commit is contained in:
+1
-1
@@ -50,7 +50,7 @@
|
||||
*/
|
||||
|
||||
/** Nested widget definition for train depots. */
|
||||
static constexpr NWidgetPart _nested_train_depot_widgets[] = {
|
||||
static constexpr std::initializer_list<NWidgetPart> _nested_train_depot_widgets = {
|
||||
NWidget(NWID_HORIZONTAL),
|
||||
NWidget(WWT_CLOSEBOX, COLOUR_GREY),
|
||||
NWidget(NWID_SELECTION, INVALID_COLOUR, WID_D_SHOW_RENAME), SetAspect(WidgetDimensions::ASPECT_RENAME), // rename button
|
||||
|
||||
Reference in New Issue
Block a user