Codechange: Use std::initializer_list for NWidgetPart data. (#14749)

Avoids using C/C++ arrays.
This commit is contained in:
Peter Nelson
2025-11-01 22:33:00 +00:00
committed by GitHub
parent 34bbae05db
commit 66b6d71e32
62 changed files with 157 additions and 157 deletions
+1 -1
View File
@@ -217,7 +217,7 @@ struct HighScoreWindow : EndGameHighScoreBaseWindow {
}
};
static constexpr NWidgetPart _nested_highscore_widgets[] = {
static constexpr std::initializer_list<NWidgetPart> _nested_highscore_widgets = {
NWidget(WWT_PANEL, COLOUR_BROWN, WID_H_BACKGROUND), SetResize(1, 1), EndContainer(),
};