summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/vc4000/slot.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/vc4000/slot.cpp')
-rw-r--r--src/devices/bus/vc4000/slot.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/devices/bus/vc4000/slot.cpp b/src/devices/bus/vc4000/slot.cpp
index a7c8fc23ec4..ecfc63b42dd 100644
--- a/src/devices/bus/vc4000/slot.cpp
+++ b/src/devices/bus/vc4000/slot.cpp
@@ -145,10 +145,10 @@ static const vc4000_slot slot_list[] =
static int vc4000_get_pcb_id(const char *slot)
{
- for (int i = 0; i < ARRAY_LENGTH(slot_list); i++)
+ for (auto & elem : slot_list)
{
- if (!core_stricmp(slot_list[i].slot_option, slot))
- return slot_list[i].pcb_id;
+ if (!core_stricmp(elem.slot_option, slot))
+ return elem.pcb_id;
}
return 0;
@@ -156,10 +156,10 @@ static int vc4000_get_pcb_id(const char *slot)
static const char *vc4000_get_slot(int type)
{
- for (int i = 0; i < ARRAY_LENGTH(slot_list); i++)
+ for (auto & elem : slot_list)
{
- if (slot_list[i].pcb_id == type)
- return slot_list[i].slot_option;
+ if (elem.pcb_id == type)
+ return elem.slot_option;
}
return "std";