summaryrefslogtreecommitdiffstats
path: root/src/frontend/mame/ui/cheatopt.cpp
diff options
context:
space:
mode:
author Nathan Woods <npwoods@mess.org>2016-06-29 20:50:36 -0400
committer Nathan Woods <npwoods@mess.org>2016-06-29 20:50:36 -0400
commita2b07a8969c6b47bf71f0ff13db058327634919e (patch)
treeffe4e86a38dec8d4c3ddfda23e12aa9aea73691c /src/frontend/mame/ui/cheatopt.cpp
parent78576d09c66b7bfb6d3e6d41c38fc9c059e6cb6b (diff)
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
Diffstat (limited to 'src/frontend/mame/ui/cheatopt.cpp')
-rw-r--r--src/frontend/mame/ui/cheatopt.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/frontend/mame/ui/cheatopt.cpp b/src/frontend/mame/ui/cheatopt.cpp
index b54e5e7ee3a..f1ec5c24278 100644
--- a/src/frontend/mame/ui/cheatopt.cpp
+++ b/src/frontend/mame/ui/cheatopt.cpp
@@ -133,7 +133,7 @@ void menu_cheat::populate()
std::string subtext;
// add the autofire menu
- item_append(_("Autofire Settings"), nullptr, 0, (void *)ITEMREF_CHEATS_AUTOFIRE_SETTINGS);
+ item_append(_("Autofire Settings"), "", 0, (void *)ITEMREF_CHEATS_AUTOFIRE_SETTINGS);
/* add a separator */
item_append(menu_item_type::SEPARATOR);
@@ -147,17 +147,17 @@ void menu_cheat::populate()
if (text == MENU_SEPARATOR_ITEM)
item_append(menu_item_type::SEPARATOR);
else
- item_append(text.c_str(), subtext.c_str(), flags, curcheat.get());
+ item_append(text, subtext, flags, curcheat.get());
}
/* add a separator */
item_append(menu_item_type::SEPARATOR);
/* add a reset all option */
- item_append(_("Reset All"), nullptr, 0, (void *)ITEMREF_CHEATS_RESET_ALL);
+ item_append(_("Reset All"), "", 0, (void *)ITEMREF_CHEATS_RESET_ALL);
/* add a reload all cheats option */
- item_append(_("Reload All"), nullptr, 0, (void *)ITEMREF_CHEATS_RELOAD_ALL);
+ item_append(_("Reload All"), "", 0, (void *)ITEMREF_CHEATS_RELOAD_ALL);
}
}
@@ -313,7 +313,7 @@ void menu_autofire::populate()
if (menu_items==0)
{
item_append(menu_item_type::SEPARATOR);
- item_append(_("No buttons found on this machine!"), nullptr, FLAG_DISABLE, nullptr);
+ item_append(_("No buttons found on this machine!"), "", FLAG_DISABLE, nullptr);
}
/* add a separator */