From 53df4f447db0408d00bdcbee3105e013bdd19c3a Mon Sep 17 00:00:00 2001 From: AJR Date: Tue, 10 Sep 2019 15:11:00 -0400 Subject: Use std::forward_list for breakpoint and registerpoint lists (nw) --- src/emu/debug/dvdisasm.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/emu/debug/dvdisasm.cpp') diff --git a/src/emu/debug/dvdisasm.cpp b/src/emu/debug/dvdisasm.cpp index 35550e75c01..667542483a4 100644 --- a/src/emu/debug/dvdisasm.cpp +++ b/src/emu/debug/dvdisasm.cpp @@ -353,8 +353,8 @@ void debug_view_disasm::complete_information(const debug_view_disasm_source &sou dasm.m_is_pc = adr == pc; dasm.m_is_bp = false; - for(device_debug::breakpoint *bp = source.device()->debug()->breakpoint_first(); bp != nullptr; bp = bp->next()) - if(adr ==(bp->address() & source.m_space.logaddrmask())) { + for(const device_debug::breakpoint &bp : source.device()->debug()->breakpoint_list()) + if(adr == (bp.address() & source.m_space.logaddrmask())) { dasm.m_is_bp = true; break; } -- cgit v1.2.3