summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/bml3/bml3bus.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/bml3/bml3bus.cpp')
-rw-r--r--src/devices/bus/bml3/bml3bus.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/devices/bus/bml3/bml3bus.cpp b/src/devices/bus/bml3/bml3bus.cpp
index 83a2bbc082e..0438cc58997 100644
--- a/src/devices/bus/bml3/bml3bus.cpp
+++ b/src/devices/bus/bml3/bml3bus.cpp
@@ -139,9 +139,9 @@ void bml3bus_device::device_start()
m_out_firq_cb.resolve_safe();
// clear slots
- for (int i = 0; i < BML3BUS_MAX_SLOTS; i++)
+ for (auto & elem : m_device_list)
{
- m_device_list[i] = NULL;
+ elem = nullptr;
}
}
@@ -157,7 +157,7 @@ device_bml3bus_card_interface *bml3bus_device::get_bml3bus_card(int slot)
{
if (slot < 0)
{
- return NULL;
+ return nullptr;
}
return m_device_list[slot];