diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2015-12-04 10:29:21 +0100 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2015-12-04 10:29:21 +0100 |
commit | 1b0ec08af5cd3b3268b5889ba4e30409431434e2 (patch) | |
tree | 42c510afaaeb15e1f97eff044a4d295586c30aaa /src/devices/machine/ay31015.cpp | |
parent | 5a2f80dcde2e76356bf568f1e2d71b054a7db45b (diff) |
clang-modernize part 6
Diffstat (limited to 'src/devices/machine/ay31015.cpp')
-rw-r--r-- | src/devices/machine/ay31015.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/devices/machine/ay31015.cpp b/src/devices/machine/ay31015.cpp index 08b136043ad..f1db92a19d8 100644 --- a/src/devices/machine/ay31015.cpp +++ b/src/devices/machine/ay31015.cpp @@ -121,8 +121,8 @@ ay31015_device::ay31015_device(const machine_config &mconfig, device_type type, 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) @@ -149,8 +149,8 @@ ay31015_device::ay31015_device(const machine_config &mconfig, const char *tag, d 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) |