diff options
Diffstat (limited to 'src/emu/device.cpp')
-rw-r--r-- | src/emu/device.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/emu/device.cpp b/src/emu/device.cpp index 39897887628..055f0707135 100644 --- a/src/emu/device.cpp +++ b/src/emu/device.cpp @@ -130,7 +130,7 @@ device_t::~device_t() memory_region *device_t::memregion(std::string _tag) const { // build a fully-qualified name and look it up - auto search = machine().memory().regions().find(subtag(_tag)); + auto search = machine().memory().regions().find(subtag(std::move(_tag))); if (search != machine().memory().regions().end()) return search->second.get(); else @@ -146,7 +146,7 @@ memory_region *device_t::memregion(std::string _tag) const memory_share *device_t::memshare(std::string _tag) const { // build a fully-qualified name and look it up - auto search = machine().memory().shares().find(subtag(_tag)); + auto search = machine().memory().shares().find(subtag(std::move(_tag))); if (search != machine().memory().shares().end()) return search->second.get(); else @@ -161,7 +161,7 @@ memory_share *device_t::memshare(std::string _tag) const memory_bank *device_t::membank(std::string _tag) const { - auto search = machine().memory().banks().find(subtag(_tag)); + auto search = machine().memory().banks().find(subtag(std::move(_tag))); if (search != machine().memory().banks().end()) return search->second.get(); else @@ -177,7 +177,7 @@ memory_bank *device_t::membank(std::string _tag) const ioport_port *device_t::ioport(std::string tag) const { // build a fully-qualified name and look it up - return machine().ioport().port(subtag(tag).c_str()); + return machine().ioport().port(subtag(std::move(tag)).c_str()); } |