diff options
author | 2023-10-08 09:00:33 -0400 | |
---|---|---|
committer | 2023-10-08 09:02:47 -0400 | |
commit | 07b3bdd04f9aeb9d1e56b6d03ef998d383153fc6 (patch) | |
tree | cca31406789a294b5123d1ed394cdf4579b6aa8a /src/lib/formats/hp_ipc_dsk.cpp | |
parent | db48a71d4fe2c0331b4a4475aa4ec602e6896091 (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/hp_ipc_dsk.cpp')
-rw-r--r-- | src/lib/formats/hp_ipc_dsk.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/formats/hp_ipc_dsk.cpp b/src/lib/formats/hp_ipc_dsk.cpp index 5c64bfeefe0..0d88a18d156 100644 --- a/src/lib/formats/hp_ipc_dsk.cpp +++ b/src/lib/formats/hp_ipc_dsk.cpp @@ -2,7 +2,7 @@ // copyright-holders:Sergey Svishchev /********************************************************************* - formats/hp_ipc_dsk.c + formats/hp_ipc_dsk.cpp HP Integral PC format @@ -14,17 +14,17 @@ hp_ipc_format::hp_ipc_format() : wd177x_format(formats) { } -const char *hp_ipc_format::name() const +const char *hp_ipc_format::name() const noexcept { return "hp_ipc"; } -const char *hp_ipc_format::description() const +const char *hp_ipc_format::description() const noexcept { return "HP Integral PC disk image"; } -const char *hp_ipc_format::extensions() const +const char *hp_ipc_format::extensions() const noexcept { return "img"; } |