summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/ui/devctrl.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/ui/devctrl.h')
-rw-r--r--src/emu/ui/devctrl.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/emu/ui/devctrl.h b/src/emu/ui/devctrl.h
index 81fe091315b..b5b008e4baa 100644
--- a/src/emu/ui/devctrl.h
+++ b/src/emu/ui/devctrl.h
@@ -37,7 +37,7 @@ protected:
int current_index();
void previous();
void next();
- astring current_display_name();
+ std::string current_display_name();
UINT32 current_display_flags();
private:
@@ -122,15 +122,15 @@ void ui_menu_device_control<_DeviceType>::next()
//-------------------------------------------------
template<class _DeviceType>
-astring ui_menu_device_control<_DeviceType>::current_display_name()
+std::string ui_menu_device_control<_DeviceType>::current_display_name()
{
- astring display_name;
- display_name.cpy(current_device()->name());
+ std::string display_name;
+ display_name.assign(current_device()->name());
if (count() > 1)
{
- astring temp;
- temp.printf(" %d", current_index() + 1);
- display_name.cat(temp);
+ std::string temp;
+ strprintf(temp, " %d", current_index() + 1);
+ display_name.append(temp);
}
return display_name;
}