summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author npwoods <npwoods@mess.org>2022-04-24 14:21:59 -0400
committer GitHub <noreply@github.com>2022-04-24 20:21:59 +0200
commit4c1c5cf9467b13c05c799b69ab7fd02425e8aeb8 (patch)
treeded4f2331b69e59fdbeab81eac1fbc57f6f8cb10
parent80c28ec7fe16402f28d773c5ec3ef61495fcf17a (diff)
Changed floppy_image_device::identify() to take std::string_view instead of std::string (#9616)
-rw-r--r--src/devices/imagedev/floppy.cpp2
-rw-r--r--src/devices/imagedev/floppy.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/imagedev/floppy.cpp b/src/devices/imagedev/floppy.cpp
index c1782e3c021..a550a1e8f1b 100644
--- a/src/devices/imagedev/floppy.cpp
+++ b/src/devices/imagedev/floppy.cpp
@@ -530,7 +530,7 @@ void floppy_image_device::device_timer(emu_timer &timer, device_timer_id id, int
index_resync();
}
-const floppy_image_format_t *floppy_image_device::identify(std::string filename)
+const floppy_image_format_t *floppy_image_device::identify(std::string_view filename)
{
util::core_file::ptr fd;
std::string revised_path;
diff --git a/src/devices/imagedev/floppy.h b/src/devices/imagedev/floppy.h
index de755fba4ec..b9ff120e200 100644
--- a/src/devices/imagedev/floppy.h
+++ b/src/devices/imagedev/floppy.h
@@ -82,7 +82,7 @@ public:
const std::vector<const floppy_image_format_t *> &get_formats() const;
const std::vector<fs_info> &get_fs() const { return m_fs; }
const floppy_image_format_t *get_load_format() const;
- const floppy_image_format_t *identify(std::string filename);
+ const floppy_image_format_t *identify(std::string_view filename);
void set_rpm(float rpm);
void init_fs(const fs_info *fs, const fs::meta_data &meta);