summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-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);