summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/isa/cga.cpp
diff options
context:
space:
mode:
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
commit1b0ec08af5cd3b3268b5889ba4e30409431434e2 (patch)
tree42c510afaaeb15e1f97eff044a4d295586c30aaa /src/devices/bus/isa/cga.cpp
parent5a2f80dcde2e76356bf568f1e2d71b054a7db45b (diff)
clang-modernize part 6
Diffstat (limited to 'src/devices/bus/isa/cga.cpp')
-rw-r--r--src/devices/bus/isa/cga.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/bus/isa/cga.cpp b/src/devices/bus/isa/cga.cpp
index 3c1cd22cab7..8f99ddc0792 100644
--- a/src/devices/bus/isa/cga.cpp
+++ b/src/devices/bus/isa/cga.cpp
@@ -1593,9 +1593,9 @@ void isa8_cga_pc1512_device::device_reset()
m_write = 0x0f;
m_read = 0;
m_mc6845_address = 0;
- for ( int i = 0; i < 31; i++ )
+ for (auto & elem : m_mc6845_locked_register)
{
- m_mc6845_locked_register[i] = 0;
+ elem = 0;
}
membank("bank1")->set_base(&m_vram[isa8_cga_pc1512_device::vram_offset[0]]);