summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/formats/uniflex_dsk.cpp
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2023-10-08 09:00:33 -0400
committer AJR <ajrhacker@users.noreply.github.com>2023-10-08 09:02:47 -0400
commit07b3bdd04f9aeb9d1e56b6d03ef998d383153fc6 (patch)
treecca31406789a294b5123d1ed394cdf4579b6aa8a /src/lib/formats/uniflex_dsk.cpp
parentdb48a71d4fe2c0331b4a4475aa4ec602e6896091 (diff)
Floppy format API refinements
- Add noexcept to format information overrides and several simple floppy_image accessors. - Be more const-correct and use references instead of raw pointers wherever applicable. In particular, floppy_image_device::load and floppy_image_device::save now take a reference to floppy_image rather than a pointer, const-qualified in the latter case.
Diffstat (limited to 'src/lib/formats/uniflex_dsk.cpp')
-rw-r--r--src/lib/formats/uniflex_dsk.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/formats/uniflex_dsk.cpp b/src/lib/formats/uniflex_dsk.cpp
index 59c243531dd..0143bf8cf0e 100644
--- a/src/lib/formats/uniflex_dsk.cpp
+++ b/src/lib/formats/uniflex_dsk.cpp
@@ -1,7 +1,7 @@
// license:BSD-3-Clause
// copyright-holders:68bit
/*
- * uniflex_dsk.c - UniFLEX compatible disk images
+ * uniflex_dsk.cpp - UniFLEX compatible disk images
*
* The UniFLEX floppy disk format is distinctily different to the FLEX format,
* the sector size is 512 byte sectors versus 256 byte sectors and the format
@@ -20,17 +20,17 @@ uniflex_format::uniflex_format() : wd177x_format(formats)
{
}
-const char *uniflex_format::name() const
+const char *uniflex_format::name() const noexcept
{
return "uniflex";
}
-const char *uniflex_format::description() const
+const char *uniflex_format::description() const noexcept
{
return "UniFLEX compatible disk image";
}
-const char *uniflex_format::extensions() const
+const char *uniflex_format::extensions() const noexcept
{
return "dsk";
}