diff options
author | 2016-06-29 20:50:36 -0400 | |
---|---|---|
committer | 2016-06-29 20:50:36 -0400 | |
commit | a2b07a8969c6b47bf71f0ff13db058327634919e (patch) | |
tree | ffe4e86a38dec8d4c3ddfda23e12aa9aea73691c /src/frontend/mame/ui/filemngr.cpp | |
parent | 78576d09c66b7bfb6d3e6d41c38fc9c059e6cb6b (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/filemngr.cpp')
-rw-r--r-- | src/frontend/mame/ui/filemngr.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/frontend/mame/ui/filemngr.cpp b/src/frontend/mame/ui/filemngr.cpp index 403f7373e2c..fe5cd6a2197 100644 --- a/src/frontend/mame/ui/filemngr.cpp +++ b/src/frontend/mame/ui/filemngr.cpp @@ -110,8 +110,8 @@ void menu_file_manager::populate() if (!m_warnings.empty()) { - item_append(m_warnings.c_str(), nullptr, FLAG_DISABLE, nullptr); - item_append("", nullptr, FLAG_DISABLE, nullptr); + item_append(m_warnings, "", FLAG_DISABLE, nullptr); + item_append("", "", FLAG_DISABLE, nullptr); } // cycle through all devices for this system @@ -143,18 +143,18 @@ void menu_file_manager::populate() first_entry = false; else item_append(menu_item_type::SEPARATOR); - item_append(string_format("[root%s]", dev.tag()).c_str(), nullptr, 0, nullptr); + item_append(string_format("[root%s]", dev.tag()), "", 0, nullptr); tag_appended = true; } // finally, append the image interface to the menu fill_image_line(&scan, tmp_inst, tmp_name); - item_append(tmp_inst.c_str(), tmp_name.c_str(), 0, (void *)&scan); + item_append(tmp_inst, tmp_name, 0, (void *)&scan); } } } } item_append(menu_item_type::SEPARATOR); - item_append("Reset", nullptr, 0, (void *)1); + item_append("Reset", "", 0, (void *)1); custombottom = ui().get_line_height() + 3.0f * UI_BOX_TB_BORDER; } |