summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/m6809
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2018-01-02 18:22:09 -0500
committer AJR <ajrhacker@users.noreply.github.com>2018-01-02 18:22:21 -0500
commit53c53934a263f9cce8e92841aec08ea08c1838d0 (patch)
treeb7dfd12d8643803c444e2441d962dc3f65e374a6 /src/devices/cpu/m6809
parenteaf550d56b5a3d59fa16852f6735932a41d067df (diff)
MT #6810 & MT #6811 (nw)
Diffstat (limited to 'src/devices/cpu/m6809')
-rw-r--r--src/devices/cpu/m6809/m6809.cpp2
-rw-r--r--src/devices/cpu/m6809/m6809.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/cpu/m6809/m6809.cpp b/src/devices/cpu/m6809/m6809.cpp
index a1d0026262c..2438d90c304 100644
--- a/src/devices/cpu/m6809/m6809.cpp
+++ b/src/devices/cpu/m6809/m6809.cpp
@@ -154,7 +154,7 @@ m6809_base_device::m6809_base_device(const machine_config &mconfig, const char *
void m6809_base_device::device_start()
{
if (!m_mintf)
- m_mintf = new mi_default;
+ m_mintf = std::make_unique<mi_default>();
m_mintf->m_program = &space(AS_PROGRAM);
m_mintf->m_sprogram = has_space(AS_OPCODES) ? &space(AS_OPCODES) : m_mintf->m_program;
diff --git a/src/devices/cpu/m6809/m6809.h b/src/devices/cpu/m6809/m6809.h
index 973bf582c0e..675ec9e2317 100644
--- a/src/devices/cpu/m6809/m6809.h
+++ b/src/devices/cpu/m6809/m6809.h
@@ -155,7 +155,7 @@ protected:
};
// Memory interface
- memory_interface * m_mintf;
+ std::unique_ptr<memory_interface> m_mintf;
// CPU registers
PAIR16 m_pc; // program counter