summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2020-12-21 23:07:45 -0500
committer AJR <ajrhacker@users.noreply.github.com>2020-12-21 23:07:50 -0500
commit2194589656582c0d78c1da1a2c5322053f56e573 (patch)
tree1110b35f1e83e4c911e29a6339cf8d77b1f9bc9b /src/emu
parent0a5d207e667075f4ea0618339d971c0f977d9ce1 (diff)
util/png: Update add_text to take std::string_view for arguments
Diffstat (limited to 'src/emu')
-rw-r--r--src/emu/recording.cpp2
-rw-r--r--src/emu/screen.cpp4
-rw-r--r--src/emu/video.cpp4
3 files changed, 5 insertions, 5 deletions
diff --git a/src/emu/recording.cpp b/src/emu/recording.cpp
index dd75c27d62f..f23513ad0c8 100644
--- a/src/emu/recording.cpp
+++ b/src/emu/recording.cpp
@@ -282,7 +282,7 @@ bool mng_movie_recording::append_single_video_frame(bitmap_rgb32 &bitmap, const
if (current_frame() == 0)
{
for (auto &ent : m_info_fields)
- pnginfo.add_text(ent.first.c_str(), ent.second.c_str());
+ pnginfo.add_text(ent.first, ent.second);
}
util::png_error error = util::mng_capture_frame(*m_mng_file, pnginfo, bitmap, palette_entries, palette);
diff --git a/src/emu/screen.cpp b/src/emu/screen.cpp
index 7b84b3d9b6b..ad62bda0688 100644
--- a/src/emu/screen.cpp
+++ b/src/emu/screen.cpp
@@ -1917,8 +1917,8 @@ void screen_device::finalize_burnin()
util::png_info pnginfo;
// add two text entries describing the image
- pnginfo.add_text("Software", util::string_format("%s %s", emulator_info::get_appname(), emulator_info::get_build_version()).c_str());
- pnginfo.add_text("System", util::string_format("%s %s", machine().system().manufacturer, machine().system().type.fullname()).c_str());
+ pnginfo.add_text("Software", util::string_format("%s %s", emulator_info::get_appname(), emulator_info::get_build_version()));
+ pnginfo.add_text("System", util::string_format("%s %s", machine().system().manufacturer, machine().system().type.fullname()));
// now do the actual work
util::png_write_bitmap(file, &pnginfo, finalmap, 0, nullptr);
diff --git a/src/emu/video.cpp b/src/emu/video.cpp
index a9599fb4964..41275c94dcb 100644
--- a/src/emu/video.cpp
+++ b/src/emu/video.cpp
@@ -330,8 +330,8 @@ void video_manager::save_snapshot(screen_device *screen, emu_file &file)
std::string text1 = std::string(emulator_info::get_appname()).append(" ").append(emulator_info::get_build_version());
std::string text2 = std::string(machine().system().manufacturer).append(" ").append(machine().system().type.fullname());
util::png_info pnginfo;
- pnginfo.add_text("Software", text1.c_str());
- pnginfo.add_text("System", text2.c_str());
+ pnginfo.add_text("Software", text1);
+ pnginfo.add_text("System", text2);
// now do the actual work
const rgb_t *palette = (screen != nullptr && screen->has_palette()) ? screen->palette().palette()->entry_list_adjusted() : nullptr;