diff --git a/src/frontend/mame/ui/menu.cpp b/src/frontend/mame/ui/menu.cpp index 56daa054b04..246a4dfc462 100644 --- a/src/frontend/mame/ui/menu.cpp +++ b/src/frontend/mame/ui/menu.cpp @@ -331,7 +331,7 @@ void menu::item_append(menu_item_type type) void menu::item_append(const std::string &text, const std::string &subtext, UINT32 flags, void *ref, menu_item_type type) { - item_append((std::string&&)text, (std::string&&)subtext, flags, ref, type); + item_append(std::string(text), std::string(subtext), flags, ref, type); } //-------------------------------------------------