diff options
author | 2015-04-22 11:30:19 +0200 | |
---|---|---|
committer | 2015-04-22 11:30:45 +0200 | |
commit | 54f8b3ae5df6736c58b2a8398f9ac85da425c96d (patch) | |
tree | 5924033acf314625b14317b674adc9e9730c97cc /src/emu/ui/devctrl.h | |
parent | 946958136d85f2a1485dfb962487cba43ac6c048 (diff) |
moved all to std::string (nw)
Diffstat (limited to 'src/emu/ui/devctrl.h')
-rw-r--r-- | src/emu/ui/devctrl.h | 14 |
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; } |