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/apf | |
parent | 056812ae397eddc63e716a49d97b3d0cd67f7187 (diff) |
No need for temp variables (nw)
Diffstat (limited to 'src/emu/bus/apf')
-rw-r--r-- | src/emu/bus/apf/slot.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/emu/bus/apf/slot.c b/src/emu/bus/apf/slot.c index 0e0a29a6846..7d4df6a9a08 100644 --- a/src/emu/bus/apf/slot.c +++ b/src/emu/bus/apf/slot.c @@ -49,9 +49,7 @@ void device_apf_cart_interface::rom_alloc(UINT32 size, const char *tag) { if (m_rom == NULL) { - std::string tempstring(tag); - tempstring.append(APFSLOT_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(APFSLOT_ROM_REGION_TAG).c_str(), size, 1, ENDIANNESS_LITTLE)->base(); m_rom_size = size; } } |