summaryrefslogtreecommitdiffhomepage
path: root/Kernel/StorageKit
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/StorageKit')
-rw-r--r--Kernel/StorageKit/NVME.hpp15
1 files changed, 4 insertions, 11 deletions
diff --git a/Kernel/StorageKit/NVME.hpp b/Kernel/StorageKit/NVME.hpp
index c7ff0e66..48761334 100644
--- a/Kernel/StorageKit/NVME.hpp
+++ b/Kernel/StorageKit/NVME.hpp
@@ -12,21 +12,14 @@
namespace Kernel
{
- class NVMEDeviceInterface : public DeviceInterface<MountpointInterface*>
+ class NVMEDeviceInterface final : public DeviceInterface<MountpointInterface*>
{
public:
explicit NVMEDeviceInterface(void (*Out)(MountpointInterface* outpacket),
void (*In)(MountpointInterface* inpacket),
- void (*Cleanup)(void))
- : DeviceInterface(Out, In), fCleanup(Cleanup)
- {
- }
-
- virtual ~NVMEDeviceInterface()
- {
- if (fCleanup)
- fCleanup();
- }
+ void (*Cleanup)(void));
+
+ ~NVMEDeviceInterface() override;
public:
NVMEDeviceInterface& operator=(const NVMEDeviceInterface&) = default;