Codechange: Use begin/end of nwidget parts of begin/length.
This simplifies processing nwidget parts as, unlike the remaining length, the pointer to the end of the list never changes. This is the same principle as we use(d) for tracking end instead of length for C-style strings. And this removes 160~ instances of the lengthof() macro.
This commit is contained in:
@@ -106,7 +106,7 @@ static WindowDesc _console_window_desc(
|
||||
WDP_MANUAL, nullptr, 0, 0,
|
||||
WC_CONSOLE, WC_NONE,
|
||||
0,
|
||||
_nested_console_window_widgets, lengthof(_nested_console_window_widgets)
|
||||
std::begin(_nested_console_window_widgets), std::end(_nested_console_window_widgets)
|
||||
);
|
||||
|
||||
struct IConsoleWindow : Window
|
||||
|
Reference in New Issue
Block a user