Codechange: Make all NWidgetPart arrays constexpr.
This ensures that the arrays are not created at runtime and prevents using non-constexpr values.
This commit is contained in:

committed by
Peter Nelson

parent
71b7ba0daa
commit
7737aa6640
@@ -313,7 +313,7 @@ const StringID BuildBridgeWindow::sorter_names[] = {
|
||||
};
|
||||
|
||||
/** Widgets of the bridge gui. */
|
||||
static const NWidgetPart _nested_build_bridge_widgets[] = {
|
||||
static constexpr NWidgetPart _nested_build_bridge_widgets[] = {
|
||||
/* Header */
|
||||
NWidget(NWID_HORIZONTAL),
|
||||
NWidget(WWT_CLOSEBOX, COLOUR_DARK_GREEN),
|
||||
|
Reference in New Issue
Block a user