summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/ui/ui.cpp
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2016-01-16 20:05:32 +0100
committer Miodrag Milanovic <mmicko@gmail.com>2016-01-16 20:05:32 +0100
commitcaba131d844ade3f2b30d6be24ea6cf46b2949d7 (patch)
tree03a87639748f22e37c6ef572354e8662517b7ec9 /src/emu/ui/ui.cpp
parent2d96e6f4d304f1e8dbc15d305b9445769724219b (diff)
rest of device parameters to std::string (nw)
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 989905ba550..04fdb7ca436 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;
- const char *name = exec->device().name();
+ std::string 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() && strcmp(name, scan->device().name()) == 0 && exec->device().clock() == scan->device().clock())
+ if (exec->device().type() == scan->device().type() && name==scan->device().name() && 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.append(name);
+ str += name;
// display clock in kHz or MHz
if (clock >= 1000000)