From 1d610433a7e49f4afe9dc92f27618c5bf14c1b07 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Mon, 18 Jan 2016 14:42:45 +0100 Subject: [PATCH] cleanup (nw) --- src/emu/emuopts.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/emu/emuopts.cpp b/src/emu/emuopts.cpp index 34c8eb4ff20..d3964984d58 100644 --- a/src/emu/emuopts.cpp +++ b/src/emu/emuopts.cpp @@ -241,7 +241,7 @@ bool emu_options::add_slot_options(bool isfirstpass) first = false; // retrieve info about the device instance - std::string name(slot->device().tag().substr(1).c_str()); + std::string name(slot->device().tag().substr(1)); if (!exists(name.c_str())) { // add the option @@ -278,7 +278,7 @@ void emu_options::update_slot_options() for (device_slot_interface *slot = iter.first(); slot != nullptr; slot = iter.next()) { // retrieve info about the device instance - std::string name(slot->device().tag().substr(1).c_str()); + std::string name(slot->device().tag().substr(1)); if (exists(name.c_str()) && slot->first_option() != nullptr) { std::string defvalue = slot->get_default_card_software();