summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/devfind.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/devfind.h')
-rw-r--r--src/emu/devfind.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/emu/devfind.h b/src/emu/devfind.h
index 38f7705ca0a..2493a66782f 100644
--- a/src/emu/devfind.h
+++ b/src/emu/devfind.h
@@ -267,8 +267,9 @@ public:
// construction/destruction
ioport_array_finder(device_t &base, const char *basetag)
{
- for (int index = 0; index < _Count; index++)
- m_array[index].reset(global_alloc(ioport_finder_type(base, m_tag[index].format("%s.%d", basetag, index).c_str())));
+ for (int index = 0; index < _Count; index++) {
+ m_array[index].reset(global_alloc(ioport_finder_type(base, strformat(m_tag[index], "%s.%d", basetag, index).c_str())));
+ }
}
ioport_array_finder(device_t &base, const char * const *tags)
@@ -284,7 +285,7 @@ public:
protected:
// internal state
auto_pointer<ioport_finder_type> m_array[_Count];
- astring m_tag[_Count];
+ std::string m_tag[_Count];
};
// optional ioport array finder
@@ -436,7 +437,7 @@ public:
shared_ptr_array_finder(device_t &base, const char *basetag, UINT8 width = sizeof(_PointerType) * 8)
{
for (int index = 0; index < _Count; index++)
- m_array[index].reset(global_alloc(shared_ptr_type(base, m_tag[index].format("%s.%d", basetag, index).c_str(), width)));
+ m_array[index].reset(global_alloc(shared_ptr_type(base, strformat(m_tag[index],"%s.%d", basetag, index).c_str(), width)));
}
// array accessors
@@ -446,7 +447,7 @@ public:
protected:
// internal state
auto_pointer<shared_ptr_type> m_array[_Count];
- astring m_tag[_Count];
+ std::string m_tag[_Count];
};
// optional shared pointer array finder