diff options
Diffstat (limited to 'Kernel/Heap')
-rw-r--r-- | Kernel/Heap/Heap.h | 4 | ||||
-rw-r--r-- | Kernel/Heap/SlabAllocator.cpp | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/Kernel/Heap/Heap.h b/Kernel/Heap/Heap.h index dc53364113..2bf8bf9980 100644 --- a/Kernel/Heap/Heap.h +++ b/Kernel/Heap/Heap.h @@ -58,9 +58,7 @@ public: // at the end of the memory block. VERIFY(m_total_chunks * CHUNK_SIZE + (m_total_chunks + 7) / 8 <= memory_size); } - ~Heap() - { - } + ~Heap() = default; static size_t calculate_memory_for_bytes(size_t bytes) { diff --git a/Kernel/Heap/SlabAllocator.cpp b/Kernel/Heap/SlabAllocator.cpp index 7b12b3fa71..ccba520bed 100644 --- a/Kernel/Heap/SlabAllocator.cpp +++ b/Kernel/Heap/SlabAllocator.cpp @@ -38,7 +38,7 @@ namespace Kernel { template<size_t templated_slab_size> class SlabAllocator { public: - SlabAllocator() { } + SlabAllocator() = default; void init(size_t size) { |