From 174720a64ddeed98078139dc0e4dd7aed15f91d4 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Thu, 17 Dec 2015 11:10:30 +0100 Subject: 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 --- src/mame/drivers/apexc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mame/drivers/apexc.cpp') diff --git a/src/mame/drivers/apexc.cpp b/src/mame/drivers/apexc.cpp index f20a6d29685..dd992f1a209 100644 --- a/src/mame/drivers/apexc.cpp +++ b/src/mame/drivers/apexc.cpp @@ -26,7 +26,7 @@ public: be edited - the existence of this register is a personnal guess */ - bitmap_ind16 *m_bitmap; + std::unique_ptr m_bitmap; UINT32 m_old_edit_keys; int m_old_control_keys; @@ -568,7 +568,7 @@ void apexc_state::video_start() int width = m_screen->width(); int height = m_screen->height(); - m_bitmap = auto_bitmap_ind16_alloc(machine(), width, height); + m_bitmap = std::make_unique(width, height); m_bitmap->fill(0, /*machine().visible_area*/teletyper_window); } -- cgit v1.2.3