summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/apexc.cpp
diff options
context:
space:
mode:
authorGravatarGravatar Miodrag Milanovic <mmicko@gmail.com>2015-12-17 11:10:30 +0100
committerGravatarGravatar Miodrag Milanovic <mmicko@gmail.com>2015-12-17 11:10:30 +0100
commit174720a64ddeed98078139dc0e4dd7aed15f91d4 (patch)
treeb22e4fb4f1a210751cadc5aa01d73113b8e9857f /src/mame/drivers/apexc.cpp
parentbe38cd71bb958d651ba91db8db439edc9c31b21e (diff)
downloadmame-174720a64ddeed98078139dc0e4dd7aed15f91d4.tar.xz
mame-174720a64ddeed98078139dc0e4dd7aed15f91d4.zip
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/apexc.cpp')
-rw-r--r--src/mame/drivers/apexc.cpp4
1 files changed, 2 insertions, 2 deletions
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<bitmap_ind16> 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<bitmap_ind16>(width, height);
m_bitmap->fill(0, /*machine().visible_area*/teletyper_window);
}