diff options
| author | 2017-03-04 16:00:18 -0500 | |
|---|---|---|
| committer | 2017-03-04 16:00:18 -0500 | |
| commit | a011e3a22ef667358e94d4a6deb6ad440b6b35f3 (patch) | |
| tree | 48c7e4f6c926106f04e87299ec52cf406e0e778c /src/emu/debug/debugcmd.cpp | |
| parent | 573853e3b6851d64a4324ba18e98e7afc58cead6 (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.cpp | 4 |
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]); |
