summaryrefslogtreecommitdiff
path: root/Kernel
diff options
context:
space:
mode:
authorBen Wiederhake <BenWiederhake.GitHub@gmx.de>2021-11-06 15:56:10 +0100
committerAndreas Kling <kling@serenityos.org>2021-11-10 14:39:42 +0100
commitbf7a2ff941ecdc9ee5abfb1d08e16fe1bcb86153 (patch)
tree829d044f30c9eaf5af7a1a531001816c3f95b1fb /Kernel
parent850db15d662385975ae2c0cf1d04e69e9edb10c5 (diff)
downloadserenity-bf7a2ff941ecdc9ee5abfb1d08e16fe1bcb86153.zip
AK+Kernel: Make BitmapView read-only
Diffstat (limited to 'Kernel')
-rw-r--r--Kernel/FileSystem/Ext2FileSystem.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/FileSystem/Ext2FileSystem.h b/Kernel/FileSystem/Ext2FileSystem.h
index bf220ee454..c252b463b9 100644
--- a/Kernel/FileSystem/Ext2FileSystem.h
+++ b/Kernel/FileSystem/Ext2FileSystem.h
@@ -6,7 +6,7 @@
#pragma once
-#include <AK/BitmapView.h>
+#include <AK/Bitmap.h>
#include <AK/HashMap.h>
#include <Kernel/FileSystem/BlockBasedFileSystem.h>
#include <Kernel/FileSystem/Inode.h>
@@ -176,7 +176,7 @@ private:
BlockIndex bitmap_block_index { 0 };
bool dirty { false };
NonnullOwnPtr<KBuffer> buffer;
- BitmapView bitmap(u32 blocks_per_group) { return BitmapView { buffer->data(), blocks_per_group }; }
+ Bitmap bitmap(u32 blocks_per_group) { return Bitmap { buffer->data(), blocks_per_group }; }
};
ErrorOr<CachedBitmap*> get_bitmap_block(BlockIndex);