From aec01e740736db267e452f0ed5947649f79e3408 Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Sun, 28 Feb 2016 11:09:00 +1100 Subject: Replace strformat, strprintf and strcatprintf with type-safe steam_format and string_format Update MAME to use new function Instantiate ODR-used static constant members Make some of the UI code more localisable Remove use of retired functions in tools --- src/osd/modules/debugger/debugint.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/osd/modules/debugger/debugint.cpp') diff --git a/src/osd/modules/debugger/debugint.cpp b/src/osd/modules/debugger/debugint.cpp index 40a6e2a297b..205af4e1f15 100644 --- a/src/osd/modules/debugger/debugint.cpp +++ b/src/osd/modules/debugger/debugint.cpp @@ -1763,8 +1763,6 @@ static void handle_menus(running_machine &machine) static void followers_set_cpu(device_t *device) { - std::string title; - for (DView *dv = list; dv != nullptr; dv = dv->next) { if (dview_is_state(dv, VIEW_STATE_FOLLOW_CPU)) @@ -1775,8 +1773,7 @@ static void followers_set_cpu(device_t *device) case DVT_DISASSEMBLY: case DVT_STATE: dv->view->set_source(*source); - strprintf(title, "%s", source->name()); - dview_set_title(dv, title); + dview_set_title(dv, string_format("%s", source->name())); break; } } -- cgit v1.2.3