summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/ti99x/990_tap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/ti99x/990_tap.cpp')
-rw-r--r--src/devices/bus/ti99x/990_tap.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/devices/bus/ti99x/990_tap.cpp b/src/devices/bus/ti99x/990_tap.cpp
index 3f6e48ddc52..8bd5c0f75d5 100644
--- a/src/devices/bus/ti99x/990_tap.cpp
+++ b/src/devices/bus/ti99x/990_tap.cpp
@@ -892,7 +892,7 @@ class ti990_tape_image_device : public device_t,
{
public:
// construction/destruction
- ti990_tape_image_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
+ ti990_tape_image_device(const machine_config &mconfig, std::string tag, device_t *owner, UINT32 clock);
// image-level overrides
virtual iodevice_t image_type() const override { return IO_MAGTAPE; }
@@ -918,7 +918,7 @@ private:
const device_type TI990_TAPE = &device_creator<ti990_tape_image_device>;
-ti990_tape_image_device::ti990_tape_image_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
+ti990_tape_image_device::ti990_tape_image_device(const machine_config &mconfig, std::string tag, device_t *owner, UINT32 clock)
: device_t(mconfig, TI990_TAPE, "TI-990 Magnetic Tape", tag, owner, clock, "ti990_tape_image", __FILE__),
device_image_interface(mconfig, *this)
{
@@ -938,10 +938,10 @@ void ti990_tape_image_device::device_start()
int ti990_tape_image_device::tape_get_id()
{
int drive =0;
- if (strcmp(tag(), ":tape0") == 0) drive = 0;
- if (strcmp(tag(), ":tape1") == 0) drive = 1;
- if (strcmp(tag(), ":tape2") == 0) drive = 2;
- if (strcmp(tag(), ":tape3") == 0) drive = 3;
+ if (tag()==":tape0") drive = 0;
+ if (tag()==":tape1") drive = 1;
+ if (tag()==":tape2") drive = 2;
+ if (tag()==":tape3") drive = 3;
return drive;
}
@@ -978,7 +978,7 @@ MACHINE_CONFIG_END
const device_type TI990_TAPE_CTRL = &device_creator<tap_990_device>;
-tap_990_device::tap_990_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
+tap_990_device::tap_990_device(const machine_config &mconfig, std::string tag, device_t *owner, UINT32 clock)
: device_t(mconfig, TI990_TAPE_CTRL, "Generic TI-990 Tape Controller", tag, owner, clock, "tap_990", __FILE__),
m_int_line(*this)
{