summaryrefslogtreecommitdiffstatshomepage
path: root/src/frontend/mame/ui/info_pty.cpp
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2020-12-08 21:19:17 -0500
committer AJR <ajrhacker@users.noreply.github.com>2020-12-08 21:24:46 -0500
commitc22cb17f326b4939d8ff4219410909e32e70ab86 (patch)
tree8db68c201fa9673eeb6acab37a5d221c7a338ea6 /src/frontend/mame/ui/info_pty.cpp
parent6172111b187c1dd66329adb2b9bba2a82a0ce116 (diff)
C++17 string handling updates (without charconv so as not to break GCC 7)
- render.cpp, rendlay.cpp, ui/ui.cpp, ui/menu.cpp: Change argument types for text processing functions from const char * to std::string_view - ui/menu.cpp: Add overloads of item_append omitting the frequently empty subtext argument - cheat.cpp: Remove some c_str() calls that became unnecessary a while ago
Diffstat (limited to 'src/frontend/mame/ui/info_pty.cpp')
-rw-r--r--src/frontend/mame/ui/info_pty.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/frontend/mame/ui/info_pty.cpp b/src/frontend/mame/ui/info_pty.cpp
index 49d0737cbad..12c2733af1a 100644
--- a/src/frontend/mame/ui/info_pty.cpp
+++ b/src/frontend/mame/ui/info_pty.cpp
@@ -27,8 +27,8 @@ menu_pty_info::~menu_pty_info()
void menu_pty_info::populate(float &customtop, float &custombottom)
{
- item_append(_("Pseudo terminals"), "", FLAG_DISABLE, nullptr);
- item_append("", "", FLAG_DISABLE, nullptr);
+ item_append(_("Pseudo terminals"), FLAG_DISABLE, nullptr);
+ item_append(std::string(), FLAG_DISABLE, nullptr);
for (device_pty_interface &pty : pty_interface_enumerator(machine().root_device()))
{
@@ -37,7 +37,7 @@ void menu_pty_info::populate(float &customtop, float &custombottom)
item_append(port_name, pty.slave_name(), FLAG_DISABLE, nullptr);
else
item_append(port_name, _("[failed]"), FLAG_DISABLE, nullptr);
- item_append("", "", FLAG_DISABLE, nullptr);
+ item_append(std::string(), FLAG_DISABLE, nullptr);
}
}