DiskDevice: Add missing override and remove unnecessary class_name()

This class needs to be fixed up to not hide the read()/write() virtuals
at some point.
This commit is contained in:
Andreas Kling 2019-08-07 07:20:22 +02:00
parent 60c25228ee
commit bebe7c4cff
Notes: sideshowbarker 2024-07-19 12:50:48 +09:00

View file

@ -9,12 +9,11 @@ typedef u32 DiskOffset;
class DiskDevice : public BlockDevice {
public:
virtual ~DiskDevice();
virtual ~DiskDevice() override;
virtual unsigned block_size() const = 0;
virtual bool read_block(unsigned index, u8*) const = 0;
virtual bool write_block(unsigned index, const u8*) = 0;
virtual const char* class_name() const = 0;
bool read(DiskOffset, unsigned length, u8*) const;
bool write(DiskOffset, unsigned length, const u8*);