cleanup (nw)

This commit is contained in:
Miodrag Milanovic 2016-01-18 14:42:45 +01:00
parent 841a55985e
commit 1d610433a7

View File

@ -241,7 +241,7 @@ bool emu_options::add_slot_options(bool isfirstpass)
first = false; first = false;
// retrieve info about the device instance // 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())) if (!exists(name.c_str()))
{ {
// add the option // 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()) for (device_slot_interface *slot = iter.first(); slot != nullptr; slot = iter.next())
{ {
// retrieve info about the device instance // 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) if (exists(name.c_str()) && slot->first_option() != nullptr)
{ {
std::string defvalue = slot->get_default_card_software(); std::string defvalue = slot->get_default_card_software();