From 1b0ec08af5cd3b3268b5889ba4e30409431434e2 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Fri, 4 Dec 2015 10:29:21 +0100 Subject: clang-modernize part 6 --- src/devices/machine/mos8722.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/devices/machine/mos8722.cpp') diff --git a/src/devices/machine/mos8722.cpp b/src/devices/machine/mos8722.cpp index 31b2beb1f27..214a52faa21 100644 --- a/src/devices/machine/mos8722.cpp +++ b/src/devices/machine/mos8722.cpp @@ -100,9 +100,9 @@ void mos8722_device::device_start() void mos8722_device::device_reset() { - for (int i = 0; i < 16; i++) + for (auto & elem : m_reg) { - m_reg[i] = 0; + elem = 0; } m_reg[P1L] = 0x01; -- cgit v1.2.3-70-g09d2