summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/bus/a800
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2015-04-23 09:33:08 +0200
committer Miodrag Milanovic <mmicko@gmail.com>2015-04-23 09:33:08 +0200
commit9910b16241fd9e5d06174ba115ce1142e7826ef8 (patch)
tree75a6e0c7817cf2790a820a935d4031866305b54a /src/emu/bus/a800
parent056812ae397eddc63e716a49d97b3d0cd67f7187 (diff)
No need for temp variables (nw)
Diffstat (limited to 'src/emu/bus/a800')
-rw-r--r--src/emu/bus/a800/a800_slot.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/emu/bus/a800/a800_slot.c b/src/emu/bus/a800/a800_slot.c
index 6ea37620143..adbe023271a 100644
--- a/src/emu/bus/a800/a800_slot.c
+++ b/src/emu/bus/a800/a800_slot.c
@@ -62,10 +62,8 @@ device_a800_cart_interface::~device_a800_cart_interface ()
void device_a800_cart_interface::rom_alloc(UINT32 size, const char *tag)
{
if (m_rom == NULL)
- {
- std::string tempstring(tag);
- tempstring.append(A800SLOT_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(A800SLOT_ROM_REGION_TAG).c_str(), size, 1, ENDIANNESS_LITTLE)->base();
m_rom_size = size;
// setup other helpers