1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-23 12:14:11 +01:00

Codechange: Pass NWidgetParts as span instead of begin/end pointers. (#12779)

This commit is contained in:
Peter Nelson
2024-06-12 23:08:35 +01:00
committed by GitHub
parent 81b5a7c7c6
commit 55314513ce
67 changed files with 201 additions and 203 deletions

View File

@@ -299,7 +299,7 @@ static WindowDesc _build_industry_desc(
WDP_AUTO, "build_industry", 170, 212,
WC_BUILD_INDUSTRY, WC_NONE,
WDF_CONSTRUCTION,
std::begin(_nested_build_industry_widgets), std::end(_nested_build_industry_widgets)
_nested_build_industry_widgets
);
/** Build (fund or prospect) a new industry, */
@@ -1221,7 +1221,7 @@ static WindowDesc _industry_view_desc(
WDP_AUTO, "view_industry", 260, 120,
WC_INDUSTRY_VIEW, WC_NONE,
0,
std::begin(_nested_industry_view_widgets), std::end(_nested_industry_view_widgets)
_nested_industry_view_widgets
);
void ShowIndustryViewWindow(int industry)
@@ -1919,7 +1919,7 @@ static WindowDesc _industry_directory_desc(
WDP_AUTO, "list_industries", 428, 190,
WC_INDUSTRY_DIRECTORY, WC_NONE,
0,
std::begin(_nested_industry_directory_widgets), std::end(_nested_industry_directory_widgets),
_nested_industry_directory_widgets,
&IndustryDirectoryWindow::hotkeys
);
@@ -1958,7 +1958,7 @@ static WindowDesc _industry_cargoes_desc(
WDP_AUTO, "industry_cargoes", 300, 210,
WC_INDUSTRY_CARGOES, WC_NONE,
0,
std::begin(_nested_industry_cargoes_widgets), std::end(_nested_industry_cargoes_widgets)
_nested_industry_cargoes_widgets
);
/** Available types of field. */