1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 00:57:45 +00:00

Kernel: Declare VM/RangeAllocator trivial destructor as default

This is a clang tidy recommendation.
This commit is contained in:
Brian Gianforcaro 2021-07-17 02:45:03 -07:00 committed by Andreas Kling
parent 24bd664980
commit eb282ad410
2 changed files with 1 additions and 5 deletions

View file

@ -33,10 +33,6 @@ void RangeAllocator::initialize_from_parent(RangeAllocator const& parent_allocat
} }
} }
RangeAllocator::~RangeAllocator()
{
}
void RangeAllocator::dump() const void RangeAllocator::dump() const
{ {
VERIFY(m_lock.is_locked()); VERIFY(m_lock.is_locked());

View file

@ -16,7 +16,7 @@ namespace Kernel {
class RangeAllocator { class RangeAllocator {
public: public:
RangeAllocator(); RangeAllocator();
~RangeAllocator(); ~RangeAllocator() = default;
void initialize_with_range(VirtualAddress, size_t); void initialize_with_range(VirtualAddress, size_t);
void initialize_from_parent(RangeAllocator const&); void initialize_from_parent(RangeAllocator const&);