summaryrefslogtreecommitdiffstats
path: root/src/frontend/mame/ui/filecreate.cpp
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2016-11-11 20:43:19 +0100
committer Miodrag Milanovic <mmicko@gmail.com>2016-11-11 20:43:19 +0100
commit1efccdd38d4bac6ec44e13f0a6cdf877e3a1c7cb (patch)
treee1623d63666f8d559c392d316ca2192ab4116e5a /src/frontend/mame/ui/filecreate.cpp
parent2e49823a06c2955fdd2ca1b1903327730c2b32ef (diff)
using of IS_ENABLED in files used in tiny build (nw)
Diffstat (limited to 'src/frontend/mame/ui/filecreate.cpp')
-rw-r--r--src/frontend/mame/ui/filecreate.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/frontend/mame/ui/filecreate.cpp b/src/frontend/mame/ui/filecreate.cpp
index a1540e403a5..9cb825cd949 100644
--- a/src/frontend/mame/ui/filecreate.cpp
+++ b/src/frontend/mame/ui/filecreate.cpp
@@ -155,7 +155,7 @@ void menu_file_create::custom_render(void *selectedref, float top, float bottom,
void menu_file_create::populate()
{
std::string buffer;
- const image_device_format *format;
+ const image_device_format *format = nullptr;
const std::string *new_image_name;
// append the "New Image Name" item
@@ -171,8 +171,8 @@ void menu_file_create::populate()
item_append(_("New Image Name:"), *new_image_name, 0, ITEMREF_NEW_IMAGE_NAME);
// do we support multiple formats?
- if (ENABLE_FORMATS) format = m_image->formatlist().front().get();
- if (ENABLE_FORMATS && (format != nullptr))
+ if (IS_ENABLED(ENABLE_FORMATS)) format = m_image->formatlist().front().get();
+ if (IS_ENABLED(ENABLE_FORMATS) && (format != nullptr))
{
item_append(_("Image Format:"), m_current_format->description(), 0, ITEMREF_FORMAT);
m_current_format = format;