summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/fileio.cpp
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/emu/fileio.cpp
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/emu/fileio.cpp')
-rw-r--r--src/emu/fileio.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emu/fileio.cpp b/src/emu/fileio.cpp
index 2a2682874c4..6149e65a048 100644
--- a/src/emu/fileio.cpp
+++ b/src/emu/fileio.cpp
@@ -622,7 +622,7 @@ u32 emu_file::write(const void *buffer, u32 length)
// puts - write a line to a text file
//-------------------------------------------------
-int emu_file::puts(const char *s)
+int emu_file::puts(std::string_view s)
{
// write the data if we can
if (m_file)