From a2b07a8969c6b47bf71f0ff13db058327634919e Mon Sep 17 00:00:00 2001 From: Nathan Woods Date: Wed, 29 Jun 2016 20:50:36 -0400 Subject: Added a move constructor and got rid of the 'const char *' overload. I had to update a ton of call sites that relied on being able to pass nullptr. It is inevitable that there are more --- src/frontend/mame/ui/filesel.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/frontend/mame/ui/filesel.cpp') diff --git a/src/frontend/mame/ui/filesel.cpp b/src/frontend/mame/ui/filesel.cpp index 2dd8efa34ec..7225e786121 100644 --- a/src/frontend/mame/ui/filesel.cpp +++ b/src/frontend/mame/ui/filesel.cpp @@ -106,10 +106,10 @@ menu_confirm_save_as::~menu_confirm_save_as() void menu_confirm_save_as::populate() { - item_append(_("File Already Exists - Override?"), nullptr, FLAG_DISABLE, nullptr); + item_append(_("File Already Exists - Override?"), "", FLAG_DISABLE, nullptr); item_append(menu_item_type::SEPARATOR); - item_append(_("No"), nullptr, 0, ITEMREF_NO); - item_append(_("Yes"), nullptr, 0, ITEMREF_YES); + item_append(_("No"), "", 0, ITEMREF_NO); + item_append(_("Yes"), "", 0, ITEMREF_YES); } //------------------------------------------------- @@ -232,7 +232,7 @@ void menu_file_create::populate() // finish up the menu item_append(menu_item_type::SEPARATOR); - item_append(_("Create"), nullptr, 0, ITEMREF_CREATE); + item_append(_("Create"), "", 0, ITEMREF_CREATE); customtop = ui().get_line_height() + 3.0f * UI_BOX_TB_BORDER; } @@ -799,7 +799,7 @@ menu_select_format::~menu_select_format() void menu_select_format::populate() { - item_append(_("Select image format"), nullptr, FLAG_DISABLE, nullptr); + item_append(_("Select image format"), "", FLAG_DISABLE, nullptr); for (int i = 0; i < m_total_usable; i++) { const floppy_image_format_t *fmt = m_formats[i]; @@ -859,12 +859,12 @@ menu_select_rw::~menu_select_rw() void menu_select_rw::populate() { - item_append(_("Select access mode"), nullptr, FLAG_DISABLE, nullptr); - item_append(_("Read-only"), nullptr, 0, (void *)READONLY); + item_append(_("Select access mode"), "", FLAG_DISABLE, nullptr); + item_append(_("Read-only"), "", 0, (void *)READONLY); if (m_can_in_place) - item_append(_("Read-write"), nullptr, 0, (void *)READWRITE); - item_append(_("Read this image, write to another image"), nullptr, 0, (void *)WRITE_OTHER); - item_append(_("Read this image, write to diff"), nullptr, 0, (void *)WRITE_DIFF); + item_append(_("Read-write"), "", 0, (void *)READWRITE); + item_append(_("Read this image, write to another image"), "", 0, (void *)WRITE_OTHER); + item_append(_("Read this image, write to diff"), "", 0, (void *)WRITE_DIFF); } -- cgit v1.2.3-70-g09d2