Codechange: Use EnumBitSet for WindowDefaultFlags.

This commit is contained in:
Peter Nelson
2025-01-29 23:36:47 +00:00
committed by Peter Nelson
parent efb05396a7
commit d30e8dd1c1
63 changed files with 184 additions and 183 deletions

View File

@@ -556,7 +556,7 @@ Money CompanyFinancesWindow::max_money = INT32_MAX;
static WindowDesc _company_finances_desc(
WDP_AUTO, "company_finances", 0, 0,
WC_FINANCES, WC_NONE,
0,
{},
_nested_company_finances_widgets
);
@@ -1103,7 +1103,7 @@ static constexpr NWidgetPart _nested_select_company_livery_widgets[] = {
static WindowDesc _select_company_livery_desc(
WDP_AUTO, "company_color_scheme", 0, 0,
WC_COMPANY_COLOUR, WC_NONE,
0,
{},
_nested_select_company_livery_widgets
);
@@ -1728,7 +1728,7 @@ public:
static WindowDesc _select_company_manager_face_desc(
WDP_AUTO, nullptr, 0, 0,
WC_COMPANY_MANAGER_FACE, WC_NONE,
WDF_CONSTRUCTION,
WindowDefaultFlag::Construction,
_nested_select_company_manager_face_widgets
);
@@ -2105,7 +2105,7 @@ struct CompanyInfrastructureWindow : Window
static WindowDesc _company_infrastructure_desc(
WDP_AUTO, "company_infrastructure", 0, 0,
WC_COMPANY_INFRASTRUCTURE, WC_NONE,
0,
{},
_nested_company_infrastructure_widgets
);
@@ -2584,7 +2584,7 @@ struct CompanyWindow : Window
static WindowDesc _company_desc(
WDP_AUTO, "company", 0, 0,
WC_COMPANY, WC_NONE,
0,
{},
_nested_company_widgets
);
@@ -2718,7 +2718,7 @@ static constexpr NWidgetPart _nested_buy_company_widgets[] = {
static WindowDesc _buy_company_desc(
WDP_AUTO, nullptr, 0, 0,
WC_BUY_COMPANY, WC_NONE,
WDF_CONSTRUCTION,
WindowDefaultFlag::Construction,
_nested_buy_company_widgets
);