diff options
author | 2021-01-01 12:18:29 -0500 | |
---|---|---|
committer | 2021-01-01 12:22:17 -0500 | |
commit | aa29519528cb3dbdbfac56819bea670ed8c56c5d (patch) | |
tree | bdaff6e127ed377a4fc84d3e8ee1b7a99f503d0b /src/emu/image.cpp | |
parent | 21fd9835451a5a7d7655964bfb7adb1ba9b8540f (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/image.cpp')
-rw-r--r-- | src/emu/image.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emu/image.cpp b/src/emu/image.cpp index 5da34b1abc5..28a704354f0 100644 --- a/src/emu/image.cpp +++ b/src/emu/image.cpp @@ -169,7 +169,7 @@ int image_manager::write_config(emu_options &options, const char *filename, cons if (filerr == osd_file::error::NONE) { std::string inistring = options.output_ini(); - file.puts(inistring.c_str()); + file.puts(inistring); retval = 0; } return retval; |