summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2021-01-01 12:18:29 -0500
committer AJR <ajrhacker@users.noreply.github.com>2021-01-01 12:22:17 -0500
commitaa29519528cb3dbdbfac56819bea670ed8c56c5d (patch)
treebdaff6e127ed377a4fc84d3e8ee1b7a99f503d0b /src/osd
parent21fd9835451a5a7d7655964bfb7adb1ba9b8540f (diff)
Further additions of std::string_view
- corefile.cpp, fileio.cpp: Change puts to take a std::string_view parameter - rendlay.cpp: Use std::string_view instead of bare pointers in various functions - vecstream.h: Add std::string_view conversion operator to obtain output buffer without needing to make it a C string with explicit null termination - xmlfile.cpp: Add get_attribute_string_ptr method that distinguishes between empty strings and absent attributes without falling back to C strings
Diffstat (limited to 'src/osd')
-rw-r--r--src/osd/modules/debugger/debuggdbstub.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osd/modules/debugger/debuggdbstub.cpp b/src/osd/modules/debugger/debuggdbstub.cpp
index 1dce80aaf52..8f3b670dc39 100644
--- a/src/osd/modules/debugger/debuggdbstub.cpp
+++ b/src/osd/modules/debugger/debuggdbstub.cpp
@@ -678,7 +678,7 @@ void debug_gdbstub::send_reply(const char *str)
checksum += str[i];
std::string reply = string_format("$%s#%02x", str, checksum);
- m_socket.puts(reply.c_str());
+ m_socket.puts(reply);
}