diff options
author | 2015-04-23 09:33:08 +0200 | |
---|---|---|
committer | 2015-04-23 09:33:08 +0200 | |
commit | 9910b16241fd9e5d06174ba115ce1142e7826ef8 (patch) | |
tree | 75a6e0c7817cf2790a820a935d4031866305b54a /src/emu/bus/intv | |
parent | 056812ae397eddc63e716a49d97b3d0cd67f7187 (diff) |
No need for temp variables (nw)
Diffstat (limited to 'src/emu/bus/intv')
-rw-r--r-- | src/emu/bus/intv/slot.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/emu/bus/intv/slot.c b/src/emu/bus/intv/slot.c index 9f1f8434bf6..834935bae68 100644 --- a/src/emu/bus/intv/slot.c +++ b/src/emu/bus/intv/slot.c @@ -118,9 +118,7 @@ void device_intv_cart_interface::rom_alloc(UINT32 size, const char *tag) { if (m_rom == NULL) { - std::string tempstring(tag); - tempstring.append(INTVSLOT_ROM_REGION_TAG); - m_rom = device().machine().memory().region_alloc(tempstring.c_str(), size, 1, ENDIANNESS_LITTLE)->base(); + m_rom = device().machine().memory().region_alloc(std::string(tag).append(INTVSLOT_ROM_REGION_TAG).c_str(), size, 1, ENDIANNESS_LITTLE)->base(); memset(m_rom, 0xff, size); m_rom_size = size; } |