summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/debug/debugcpu.cpp
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2016-07-01 18:55:17 +0200
committer Miodrag Milanovic <mmicko@gmail.com>2016-07-01 19:51:07 +0200
commit6e1adc4386b22a2369750de02c5d3445765e4892 (patch)
treebdedec104519f8154811a7458ffe69e813a64cff /src/emu/debug/debugcpu.cpp
parent83bc05a08b672bd602370818dfde9bfa06d373f5 (diff)
simplified memory management for save states and states (nw)
Diffstat (limited to 'src/emu/debug/debugcpu.cpp')
-rw-r--r--src/emu/debug/debugcpu.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emu/debug/debugcpu.cpp b/src/emu/debug/debugcpu.cpp
index 518c96744d8..94c586d8270 100644
--- a/src/emu/debug/debugcpu.cpp
+++ b/src/emu/debug/debugcpu.cpp
@@ -1685,10 +1685,10 @@ device_debug::device_debug(device_t &device)
// add all registers into it
std::string tempstr;
- for (const device_state_entry &entry : m_state->state_entries())
+ for (auto &entry : m_state->state_entries())
{
- strmakelower(tempstr.assign(entry.symbol()));
- m_symtable.add(tempstr.c_str(), (void *)(FPTR)entry.index(), get_state, set_state);
+ strmakelower(tempstr.assign(entry->symbol()));
+ m_symtable.add(tempstr.c_str(), (void *)(FPTR)entry->index(), get_state, set_state);
}
}