summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/gticlub.cpp
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2015-12-17 11:10:30 +0100
committer Miodrag Milanovic <mmicko@gmail.com>2015-12-17 11:10:30 +0100
commit174720a64ddeed98078139dc0e4dd7aed15f91d4 (patch)
treeb22e4fb4f1a210751cadc5aa01d73113b8e9857f /src/mame/drivers/gticlub.cpp
parentbe38cd71bb958d651ba91db8db439edc9c31b21e (diff)
removed auto_bitmap_ind*_alloc and auto_bitmap_rgb32_alloc and replaced with std::unique_ptr (nw)
auto_alloc_array to unique_ptr Added make_unique_clear
Diffstat (limited to 'src/mame/drivers/gticlub.cpp')
-rw-r--r--src/mame/drivers/gticlub.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mame/drivers/gticlub.cpp b/src/mame/drivers/gticlub.cpp
index e8c88a6981f..b751e7fc029 100644
--- a/src/mame/drivers/gticlub.cpp
+++ b/src/mame/drivers/gticlub.cpp
@@ -332,8 +332,8 @@ private:
UINT8 m_gticlub_led_reg[2];
emu_timer *m_sound_irq_timer;
- UINT32 *m_sharc_dataram_0;
- UINT32 *m_sharc_dataram_1;
+ std::unique_ptr<UINT32[]> m_sharc_dataram_0;
+ std::unique_ptr<UINT32[]> m_sharc_dataram_1;
};
@@ -1416,15 +1416,15 @@ ROM_END
DRIVER_INIT_MEMBER(gticlub_state,gticlub)
{
- m_sharc_dataram_0 = auto_alloc_array(machine(), UINT32, 0x100000/4);
+ m_sharc_dataram_0 = std::make_unique<UINT32[]>(0x100000/4);
}
void gticlub_state::init_hangplt_common()
{
m_konppc->set_cgboard_texture_bank(0, "bank5", memregion("user5")->base());
m_konppc->set_cgboard_texture_bank(1, "bank6", memregion("user5")->base());
- m_sharc_dataram_0 = auto_alloc_array(machine(), UINT32, 0x100000/4);
- m_sharc_dataram_1 = auto_alloc_array(machine(), UINT32, 0x100000/4);
+ m_sharc_dataram_0 = std::make_unique<UINT32[]>(0x100000/4);
+ m_sharc_dataram_1 = std::make_unique<UINT32[]>(0x100000/4);
}
DRIVER_INIT_MEMBER(gticlub_state,hangplt)