summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/ui/ui.cpp
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2016-01-20 21:35:11 +0100
committer Miodrag Milanovic <mmicko@gmail.com>2016-01-20 21:35:11 +0100
commit7c9cd3feea638281df93381c5a7a871d79a7ba17 (patch)
tree1a857a2593c63a7ab3dee7eb248577701780f2e0 /src/emu/ui/ui.cpp
parent8193c47c1925d937acc80f043ea9eadac39fd791 (diff)
Revert "rest of device parameters to std::string (nw)"
This reverts commit caba131d844ade3f2b30d6be24ea6cf46b2949d7.
Diffstat (limited to 'src/emu/ui/ui.cpp')
-rw-r--r--src/emu/ui/ui.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emu/ui/ui.cpp b/src/emu/ui/ui.cpp
index 04fdb7ca436..989905ba550 100644
--- a/src/emu/ui/ui.cpp
+++ b/src/emu/ui/ui.cpp
@@ -1167,11 +1167,11 @@ std::string &ui_manager::game_info_astring(std::string &str)
// count how many identical CPUs we have
int count = 1;
- std::string name = exec->device().name();
+ const char *name = exec->device().name();
execute_interface_iterator execinneriter(machine().root_device());
for (device_execute_interface *scan = execinneriter.first(); scan != nullptr; scan = execinneriter.next())
{
- if (exec->device().type() == scan->device().type() && name==scan->device().name() && exec->device().clock() == scan->device().clock())
+ if (exec->device().type() == scan->device().type() && strcmp(name, scan->device().name()) == 0 && exec->device().clock() == scan->device().clock())
if (exectags.insert(scan->device().tag()).second)
count++;
}
@@ -1179,7 +1179,7 @@ std::string &ui_manager::game_info_astring(std::string &str)
// if more than one, prepend a #x in front of the CPU name
if (count > 1)
strcatprintf(str, "%d" UTF8_MULTIPLY, count);
- str += name;
+ str.append(name);
// display clock in kHz or MHz
if (clock >= 1000000)