mirror of
https://github.com/holub/mame
synced 2025-04-25 17:56:43 +03:00
debugcpu.cpp: Eliminate unnecessary downcast (nw)
This commit is contained in:
parent
c2ae911a50
commit
30c9c6fcd2
@ -88,11 +88,14 @@ debugger_cpu::debugger_cpu(running_machine &machine)
|
||||
|
||||
/* first CPU is visible by default */
|
||||
for (device_t &device : device_iterator(m_machine.root_device()))
|
||||
if (dynamic_cast<cpu_device *>(&device) != nullptr)
|
||||
{
|
||||
auto *cpu = dynamic_cast<cpu_device *>(&device);
|
||||
if (cpu != nullptr)
|
||||
{
|
||||
m_visiblecpu = downcast<cpu_device *>(&device);
|
||||
m_visiblecpu = cpu;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/* add callback for breaking on VBLANK */
|
||||
if (m_machine.first_screen() != nullptr)
|
||||
|
Loading…
Reference in New Issue
Block a user