summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/intv/slot.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/intv/slot.cpp')
-rw-r--r--src/devices/bus/intv/slot.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/devices/bus/intv/slot.cpp b/src/devices/bus/intv/slot.cpp
index 342a40964f4..05e55e49318 100644
--- a/src/devices/bus/intv/slot.cpp
+++ b/src/devices/bus/intv/slot.cpp
@@ -207,10 +207,10 @@ static const intv_slot slot_list[] =
static int intv_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;
@@ -219,10 +219,10 @@ static int intv_get_pcb_id(const char *slot)
#if 1
static const char *intv_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 "intv_rom";