From bebe7c4cff93294abba1f7f5ec206907cac50ebe Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 7 Aug 2019 07:20:22 +0200 Subject: [PATCH] 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. --- Kernel/Devices/DiskDevice.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Kernel/Devices/DiskDevice.h b/Kernel/Devices/DiskDevice.h index 873a91c5d7..83f38fe9a3 100644 --- a/Kernel/Devices/DiskDevice.h +++ b/Kernel/Devices/DiskDevice.h @@ -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*);