summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/debug/debugcmd.cpp
diff options
context:
space:
mode:
author npwoods <npwoods@alumni.carnegiemellon.edu>2017-03-04 16:00:18 -0500
committer ajrhacker <ajrhacker@users.noreply.github.com>2017-03-04 16:00:18 -0500
commita011e3a22ef667358e94d4a6deb6ad440b6b35f3 (patch)
tree48c7e4f6c926106f04e87299ec52cf406e0e778c /src/emu/debug/debugcmd.cpp
parent573853e3b6851d64a4324ba18e98e7afc58cead6 (diff)
Changed a few more 'const char *' ==> 'const std::string &' (#2111)
Diffstat (limited to 'src/emu/debug/debugcmd.cpp')
-rw-r--r--src/emu/debug/debugcmd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/debug/debugcmd.cpp b/src/emu/debug/debugcmd.cpp
index 131eb2b8f8f..426d5a86670 100644
--- a/src/emu/debug/debugcmd.cpp
+++ b/src/emu/debug/debugcmd.cpp
@@ -3013,7 +3013,7 @@ void debugger_commands::execute_mount(int ref, const std::vector<std::string> &p
bool done = false;
for (device_image_interface &img : image_interface_iterator(m_machine.root_device()))
{
- if (strcmp(img.brief_instance_name(), params[0].c_str()) == 0)
+ if (img.brief_instance_name() == params[0])
{
if (img.load(params[1]) != image_init_result::PASS)
m_console.printf("Unable to mount file %s on %s\n", params[1], params[0]);
@@ -3036,7 +3036,7 @@ void debugger_commands::execute_unmount(int ref, const std::vector<std::string>
bool done = false;
for (device_image_interface &img : image_interface_iterator(m_machine.root_device()))
{
- if (strcmp(img.brief_instance_name(), params[0].c_str()) == 0)
+ if (img.brief_instance_name() == params[0])
{
img.unload();
m_console.printf("Unmounted file from : %s\n", params[0]);