mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-17 17:32:45 +01:00
Codechange: Use std::initializer_list for NWidgetPart data. (#14749)
Avoids using C/C++ arrays.
This commit is contained in:
@@ -133,7 +133,7 @@ static inline void IConsoleResetHistoryPos()
|
||||
static std::optional<std::string_view> IConsoleHistoryAdd(std::string_view cmd);
|
||||
static void IConsoleHistoryNavigate(int direction);
|
||||
|
||||
static constexpr NWidgetPart _nested_console_window_widgets[] = {
|
||||
static constexpr std::initializer_list<NWidgetPart> _nested_console_window_widgets = {
|
||||
NWidget(WWT_EMPTY, INVALID_COLOUR, WID_C_BACKGROUND), SetResize(1, 1),
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user