summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/dislot.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/dislot.cpp')
-rw-r--r--src/emu/dislot.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/emu/dislot.cpp b/src/emu/dislot.cpp
index f5522a17aea..051dc33bdb2 100644
--- a/src/emu/dislot.cpp
+++ b/src/emu/dislot.cpp
@@ -45,7 +45,7 @@ void device_slot_interface::static_option_add(device_t &device, const char *name
device_slot_option *option = intf.option(name);
if (option != nullptr)
- throw emu_fatalerror("slot '%s' duplicate option '%s\n", device.tag().c_str(), name);
+ throw emu_fatalerror("slot '%s' duplicate option '%s\n", device.tag(), name);
intf.m_options.append(name, *global_alloc(device_slot_option(name, devtype)));
}
@@ -56,7 +56,7 @@ device_slot_option *device_slot_interface::static_option(device_t &device, const
device_slot_option *option = intf.option(name);
if (option == nullptr)
- throw emu_fatalerror("slot '%s' has no option '%s\n", device.tag().c_str(), name);
+ throw emu_fatalerror("slot '%s' has no option '%s\n", device.tag(), name);
return option;
}
@@ -65,15 +65,15 @@ device_t* device_slot_interface::get_card_device()
{
std::string subtag;
device_t *dev = nullptr;
- if (device().mconfig().options().exists(device().tag().c_str()+1))
- subtag = device().mconfig().options().main_value(device().tag().c_str()+1);
+ if (device().mconfig().options().exists(device().tag()+1))
+ subtag = device().mconfig().options().main_value(device().tag()+1);
else if (m_default_option != nullptr)
subtag.assign(m_default_option);
if (!subtag.empty()) {
device_slot_card_interface *intf = nullptr;
dev = device().subdevice(subtag.c_str());
if (dev!=nullptr && !dev->interface(intf))
- throw emu_fatalerror("get_card_device called for device '%s' with no slot card interface", dev->tag().c_str());
+ throw emu_fatalerror("get_card_device called for device '%s' with no slot card interface", dev->tag());
}
return dev;
}