mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-02-02 17:11:20 +01:00
Codechange: Pass NWidgetParts as span instead of begin/end pointers. (#12779)
This commit is contained in:
@@ -348,7 +348,7 @@ static WindowDesc _build_docks_toolbar_desc(
|
||||
WDP_ALIGN_TOOLBAR, "toolbar_water", 0, 0,
|
||||
WC_BUILD_TOOLBAR, WC_NONE,
|
||||
WDF_CONSTRUCTION,
|
||||
std::begin(_nested_build_docks_toolbar_widgets), std::end(_nested_build_docks_toolbar_widgets),
|
||||
_nested_build_docks_toolbar_widgets,
|
||||
&BuildDocksToolbarWindow::hotkeys
|
||||
);
|
||||
|
||||
@@ -392,7 +392,7 @@ static WindowDesc _build_docks_scen_toolbar_desc(
|
||||
WDP_AUTO, "toolbar_water_scen", 0, 0,
|
||||
WC_SCEN_BUILD_TOOLBAR, WC_NONE,
|
||||
WDF_CONSTRUCTION,
|
||||
std::begin(_nested_build_docks_scen_toolbar_widgets), std::end(_nested_build_docks_scen_toolbar_widgets)
|
||||
_nested_build_docks_scen_toolbar_widgets
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -502,7 +502,7 @@ static WindowDesc _build_dock_station_desc(
|
||||
WDP_AUTO, nullptr, 0, 0,
|
||||
WC_BUILD_STATION, WC_BUILD_TOOLBAR,
|
||||
WDF_CONSTRUCTION,
|
||||
std::begin(_nested_build_dock_station_widgets), std::end(_nested_build_dock_station_widgets)
|
||||
_nested_build_dock_station_widgets
|
||||
);
|
||||
|
||||
static void ShowBuildDockStationPicker(Window *parent)
|
||||
@@ -597,7 +597,7 @@ static WindowDesc _build_docks_depot_desc(
|
||||
WDP_AUTO, nullptr, 0, 0,
|
||||
WC_BUILD_DEPOT, WC_BUILD_TOOLBAR,
|
||||
WDF_CONSTRUCTION,
|
||||
std::begin(_nested_build_docks_depot_widgets), std::end(_nested_build_docks_depot_widgets)
|
||||
_nested_build_docks_depot_widgets
|
||||
);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user