summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/ay31015.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/ay31015.cpp')
-rw-r--r--src/devices/machine/ay31015.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/devices/machine/ay31015.cpp b/src/devices/machine/ay31015.cpp
index 2ecd3f311f7..f1db92a19d8 100644
--- a/src/devices/machine/ay31015.cpp
+++ b/src/devices/machine/ay31015.cpp
@@ -110,19 +110,19 @@ ay31015_device::ay31015_device(const machine_config &mconfig, device_type type,
m_rx_parity(0),
m_rx_pulses(0),
m_rx_clock(0),
- m_rx_timer(NULL),
+ m_rx_timer(nullptr),
m_tx_data(0),
m_tx_buffer(0),
m_tx_parity(0),
m_tx_pulses(0),
m_tx_clock(0),
- m_tx_timer(NULL),
+ m_tx_timer(nullptr),
m_read_si_cb(*this),
m_write_so_cb(*this),
m_status_changed_cb(*this)
{
- for (int i = 0; i < 41; i++)
- m_pins[i] = 0;
+ for (auto & elem : m_pins)
+ elem = 0;
}
ay31015_device::ay31015_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
@@ -138,19 +138,19 @@ ay31015_device::ay31015_device(const machine_config &mconfig, const char *tag, d
m_rx_parity(0),
m_rx_pulses(0),
m_rx_clock(0),
- m_rx_timer(NULL),
+ m_rx_timer(nullptr),
m_tx_data(0),
m_tx_buffer(0),
m_tx_parity(0),
m_tx_pulses(0),
m_tx_clock(0),
- m_tx_timer(NULL),
+ m_tx_timer(nullptr),
m_read_si_cb(*this),
m_write_so_cb(*this),
m_status_changed_cb(*this)
{
- for (int i = 0; i < 41; i++)
- m_pins[i] = 0;
+ for (auto & elem : m_pins)
+ elem = 0;
}
ay51013_device::ay51013_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)