mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-03 21:10:30 +00:00
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:
parent
60c25228ee
commit
bebe7c4cff
Notes:
sideshowbarker
2024-07-19 12:50:48 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/bebe7c4cff9
1 changed files with 1 additions and 2 deletions
|
@ -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*);
|
||||
|
||||
|
|
Loading…
Reference in a new issue