mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-23 12:14:11 +01:00
Codechange: Use std::initializer_list for NWidgetPart data. (#14749)
Avoids using C/C++ arrays.
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
|
||||
#include "safeguards.h"
|
||||
|
||||
static constexpr NWidgetPart _nested_group_widgets[] = {
|
||||
static constexpr std::initializer_list<NWidgetPart> _nested_group_widgets = {
|
||||
NWidget(NWID_HORIZONTAL), // Window header
|
||||
NWidget(WWT_CLOSEBOX, COLOUR_GREY),
|
||||
NWidget(WWT_CAPTION, COLOUR_GREY, WID_GL_CAPTION),
|
||||
|
||||
Reference in New Issue
Block a user