summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/device.c
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2015-04-12 08:05:15 +0200
committer Miodrag Milanovic <mmicko@gmail.com>2015-04-12 08:05:43 +0200
commit7faba31b1b8dcd6caa5f1b651d2693106de08d35 (patch)
treec528d5479eee247ee5305df53a298a09b594fccc /src/emu/device.c
parent15a464dac99052edc0645374a77ecef8d1a65b0d (diff)
There is no implicit conversion to char* in std::string (nw)
Diffstat (limited to 'src/emu/device.c')
-rw-r--r--src/emu/device.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/emu/device.c b/src/emu/device.c
index 25687338338..334505591b6 100644
--- a/src/emu/device.c
+++ b/src/emu/device.c
@@ -130,7 +130,7 @@ memory_region *device_t::memregion(const char *_tag) const
// build a fully-qualified name and look it up
astring fullpath;
- return machine().memory().region(subtag(fullpath, _tag));
+ return machine().memory().region(subtag(fullpath, _tag).c_str());
}
@@ -147,7 +147,7 @@ memory_share *device_t::memshare(const char *_tag) const
// build a fully-qualified name and look it up
astring fullpath;
- return machine().memory().shared(subtag(fullpath, _tag));
+ return machine().memory().shared(subtag(fullpath, _tag).c_str());
}
@@ -164,7 +164,7 @@ memory_bank *device_t::membank(const char *_tag) const
// build a fully-qualified name and look it up
astring fullpath;
- return machine().memory().bank(subtag(fullpath, _tag));
+ return machine().memory().bank(subtag(fullpath, _tag).c_str());
}
@@ -181,7 +181,7 @@ ioport_port *device_t::ioport(const char *tag) const
// build a fully-qualified name and look it up
astring fullpath;
- return machine().ioport().port(subtag(fullpath, tag));
+ return machine().ioport().port(subtag(fullpath, tag).c_str());
}