summaryrefslogtreecommitdiffstats
path: root/src/frontend/mame/ui/filesel.cpp
diff options
context:
space:
mode:
author Nathan Woods <npwoods@mess.org>2016-07-29 18:00:46 -0400
committer Nathan Woods <npwoods@mess.org>2016-07-29 18:00:46 -0400
commitbf111bbc6e3ccff9282d8a28ccdddc784c06310d (patch)
treeb998db855915de44effc972755caf0aa457e69e0 /src/frontend/mame/ui/filesel.cpp
parentc11997af03ab8d5560385d84a2b0c5b2d2d71dba (diff)
Converted a number of zippath calls that took 'const char *' to std::string
Diffstat (limited to 'src/frontend/mame/ui/filesel.cpp')
-rw-r--r--src/frontend/mame/ui/filesel.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/frontend/mame/ui/filesel.cpp b/src/frontend/mame/ui/filesel.cpp
index 21a0d35c28f..3f26d3cf562 100644
--- a/src/frontend/mame/ui/filesel.cpp
+++ b/src/frontend/mame/ui/filesel.cpp
@@ -228,7 +228,7 @@ menu_file_selector::file_selector_entry *menu_file_selector::append_dirent_entry
}
// determine the full path
- buffer = util::zippath_combine(m_current_directory.c_str(), dirent->name);
+ buffer = util::zippath_combine(m_current_directory, dirent->name);
// create the file selector entry
entry = &append_entry(
@@ -296,10 +296,9 @@ void menu_file_selector::populate()
const file_selector_entry *selected_entry = nullptr;
int i;
const char *volume_name;
- const char *path = m_current_directory.c_str();
// open the directory
- err = util::zippath_opendir(path, &directory);
+ err = util::zippath_opendir(m_current_directory, &directory);
// clear out the menu entries
m_entrylist.clear();
@@ -409,7 +408,7 @@ void menu_file_selector::handle()
case SELECTOR_ENTRY_TYPE_DRIVE:
case SELECTOR_ENTRY_TYPE_DIRECTORY:
// drive/directory - first check the path
- err = util::zippath_opendir(entry->fullpath.c_str(), nullptr);
+ err = util::zippath_opendir(entry->fullpath, nullptr);
if (err != osd_file::error::NONE)
{
// this path is problematic; present the user with an error and bail