diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2015-12-19 11:06:06 +0100 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2015-12-19 11:08:25 +0100 |
commit | 42adde9fd5658c8bdf1f24f1970072b8a7db0a54 (patch) | |
tree | 250107b6cdbe992c1a3569ec4dcedf4f706f94c0 /src/mame/drivers/bfm_swp.cpp | |
parent | 4facaf6c24e53a17be232c5c3cab31ecca2d0335 (diff) |
auto_alloc_array_clear -> make_unique_clear (nw)
Diffstat (limited to 'src/mame/drivers/bfm_swp.cpp')
-rw-r--r-- | src/mame/drivers/bfm_swp.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/drivers/bfm_swp.cpp b/src/mame/drivers/bfm_swp.cpp index 62c7405f489..5198984a975 100644 --- a/src/mame/drivers/bfm_swp.cpp +++ b/src/mame/drivers/bfm_swp.cpp @@ -114,7 +114,7 @@ public: { } UINT32* m_cpuregion; - UINT32* m_mainram; + std::unique_ptr<UINT32[]> m_mainram; DECLARE_READ32_MEMBER(bfm_swp_mem_r); DECLARE_WRITE32_MEMBER(bfm_swp_mem_w); @@ -191,7 +191,7 @@ INPUT_PORTS_END void bfm_swp_state::machine_start() { m_cpuregion = (UINT32*)memregion( "maincpu" )->base(); - m_mainram = (UINT32*)auto_alloc_array_clear(machine(), UINT32, 0x10000); + m_mainram = make_unique_clear<UINT32[]>(0x10000); } |