summaryrefslogtreecommitdiffstats
path: root/src/frontend/mame/ui/custui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/mame/ui/custui.cpp')
-rw-r--r--src/frontend/mame/ui/custui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/frontend/mame/ui/custui.cpp b/src/frontend/mame/ui/custui.cpp
index 7ae182928e7..c748bee1e7c 100644
--- a/src/frontend/mame/ui/custui.cpp
+++ b/src/frontend/mame/ui/custui.cpp
@@ -125,7 +125,7 @@ void menu_custom_ui::handle()
}
else if (menu_event->iptkey == IPT_UI_SELECT)
{
- std::vector<std::string> s_sel(ARRAY_LENGTH(HIDE_STATUS));
+ std::vector<std::string> s_sel(std::size(HIDE_STATUS));
std::transform(std::begin(HIDE_STATUS), std::end(HIDE_STATUS), s_sel.begin(), [](auto &s) { return _(s); });
menu::stack_push<menu_selector>(
ui(), container(), std::move(s_sel), ui_globals::panels_status,
@@ -985,7 +985,7 @@ void menu_palette_sel::handle()
void menu_palette_sel::populate(float &customtop, float &custombottom)
{
- for (unsigned x = 0; x < ARRAY_LENGTH(s_palette); ++x)
+ for (unsigned x = 0; x < std::size(s_palette); ++x)
item_append(_(s_palette[x].first), s_palette[x].second, FLAG_COLOR_BOX, (void *)(uintptr_t)(x + 1));
item_append(menu_item_type::SEPARATOR);