1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-16 11:09:11 +00:00

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

This commit is contained in:
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

@@ -47,7 +47,7 @@ static WindowDesc _errmsg_desc(
WDP_MANUAL, nullptr, 0, 0,
WC_ERRMSG, WC_NONE,
0,
std::begin(_nested_errmsg_widgets), std::end(_nested_errmsg_widgets)
_nested_errmsg_widgets
);
static constexpr NWidgetPart _nested_errmsg_face_widgets[] = {
@@ -67,7 +67,7 @@ static WindowDesc _errmsg_face_desc(
WDP_MANUAL, nullptr, 0, 0,
WC_ERRMSG, WC_NONE,
0,
std::begin(_nested_errmsg_face_widgets), std::end(_nested_errmsg_face_widgets)
_nested_errmsg_face_widgets
);
/**