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.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/emu/ui/devctrl.h b/src/emu/ui/devctrl.h
index f7054e6279f..44cdb6d8ede 100644
--- a/src/emu/ui/devctrl.h
+++ b/src/emu/ui/devctrl.h
@@ -126,11 +126,7 @@ std::string ui_menu_device_control<_DeviceType>::current_display_name()
std::string display_name;
display_name.assign(current_device()->name());
if (count() > 1)
- {
- std::string temp;
- strprintf(temp, " %d", current_index() + 1);
- display_name.append(temp);
- }
+ display_name.append(string_format("%d", current_index() + 1));
return display_name;
}