summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/formats/flex_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/flex_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/flex_dsk.cpp')
-rw-r--r--src/lib/formats/flex_dsk.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/formats/flex_dsk.cpp b/src/lib/formats/flex_dsk.cpp
index 8c5c128a78c..778e6c990b9 100644
--- a/src/lib/formats/flex_dsk.cpp
+++ b/src/lib/formats/flex_dsk.cpp
@@ -1,7 +1,7 @@
// license:BSD-3-Clause
// copyright-holders:Barry Rodewald, 68bit
/*
- * flex_dsk.c - FLEX compatible disk images
+ * flex_dsk.cpp - FLEX compatible disk images
*
* Created on: 24/06/2014
*
@@ -60,17 +60,17 @@ flex_format::flex_format() : wd177x_format(formats)
{
}
-const char *flex_format::name() const
+const char *flex_format::name() const noexcept
{
return "flex";
}
-const char *flex_format::description() const
+const char *flex_format::description() const noexcept
{
return "FLEX compatible disk image";
}
-const char *flex_format::extensions() const
+const char *flex_format::extensions() const noexcept
{
return "dsk";
}