From eb282ad410b924ab39b8ce91cc5974efdd5b9ff2 Mon Sep 17 00:00:00 2001 From: Brian Gianforcaro Date: Sat, 17 Jul 2021 02:45:03 -0700 Subject: [PATCH] Kernel: Declare VM/RangeAllocator trivial destructor as default This is a clang tidy recommendation. --- Kernel/VM/RangeAllocator.cpp | 4 ---- Kernel/VM/RangeAllocator.h | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/Kernel/VM/RangeAllocator.cpp b/Kernel/VM/RangeAllocator.cpp index 5497bdc669..29d9350483 100644 --- a/Kernel/VM/RangeAllocator.cpp +++ b/Kernel/VM/RangeAllocator.cpp @@ -33,10 +33,6 @@ void RangeAllocator::initialize_from_parent(RangeAllocator const& parent_allocat } } -RangeAllocator::~RangeAllocator() -{ -} - void RangeAllocator::dump() const { VERIFY(m_lock.is_locked()); diff --git a/Kernel/VM/RangeAllocator.h b/Kernel/VM/RangeAllocator.h index 04901d10e7..c7e2962f2b 100644 --- a/Kernel/VM/RangeAllocator.h +++ b/Kernel/VM/RangeAllocator.h @@ -16,7 +16,7 @@ namespace Kernel { class RangeAllocator { public: RangeAllocator(); - ~RangeAllocator(); + ~RangeAllocator() = default; void initialize_with_range(VirtualAddress, size_t); void initialize_from_parent(RangeAllocator const&);