mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-23 04:04:09 +01:00
Codechange: Use std::initializer_list for NWidgetPart data. (#14749)
Avoids using C/C++ arrays.
This commit is contained in:
@@ -40,7 +40,7 @@
|
||||
#include "safeguards.h"
|
||||
|
||||
/** Widgets for the textfile window. */
|
||||
static constexpr NWidgetPart _nested_textfile_widgets[] = {
|
||||
static constexpr std::initializer_list<NWidgetPart> _nested_textfile_widgets = {
|
||||
NWidget(NWID_HORIZONTAL),
|
||||
NWidget(WWT_CLOSEBOX, COLOUR_MAUVE),
|
||||
NWidget(WWT_PUSHARROWBTN, COLOUR_MAUVE, WID_TF_NAVBACK), SetFill(0, 1), SetMinimalSize(15, 1), SetArrowWidgetTypeTip(AWV_DECREASE, STR_TEXTFILE_NAVBACK_TOOLTIP),
|
||||
|
||||
Reference in New Issue
Block a user