summaryrefslogtreecommitdiff
path: root/Kernel/Heap
diff options
context:
space:
mode:
authorLenny Maiorani <lenny@colorado.edu>2021-05-16 18:00:50 -0600
committerAndreas Kling <kling@serenityos.org>2021-05-18 08:10:45 +0200
commitebb1d9740e063baa5d22bcdca58d08354141aa1c (patch)
tree97e47d3d5433519438cb70c188c258834a640a41 /Kernel/Heap
parent63897c469bb1e9f44df2a3953ccb2d4439ab17ba (diff)
downloadserenity-ebb1d9740e063baa5d22bcdca58d08354141aa1c.zip
BitmapView: Disable mutations of the underlying Bitmap
Problem: - `BitmapView` permits changing the underlying `Bitmap`. This violates the idea of a "view" since views are simply overlays which can themselves change but do not change the underlying data. Solution: - Migrate all non-`const` member functions to Bitmap.
Diffstat (limited to 'Kernel/Heap')
-rw-r--r--Kernel/Heap/Heap.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Heap/Heap.h b/Kernel/Heap/Heap.h
index ef87e10ca7..ae4793a982 100644
--- a/Kernel/Heap/Heap.h
+++ b/Kernel/Heap/Heap.h
@@ -6,7 +6,7 @@
#pragma once
-#include <AK/BitmapView.h>
+#include <AK/Bitmap.h>
#include <AK/ScopeGuard.h>
#include <AK/TemporaryChange.h>
#include <AK/Vector.h>
@@ -153,7 +153,7 @@ private:
size_t m_total_chunks { 0 };
size_t m_allocated_chunks { 0 };
u8* m_chunks { nullptr };
- BitmapView m_bitmap;
+ Bitmap m_bitmap;
};
template<typename ExpandHeap>