From bf7a2ff941ecdc9ee5abfb1d08e16fe1bcb86153 Mon Sep 17 00:00:00 2001 From: Ben Wiederhake Date: Sat, 6 Nov 2021 15:56:10 +0100 Subject: AK+Kernel: Make BitmapView read-only --- Kernel/FileSystem/Ext2FileSystem.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Kernel') 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 +#include #include #include #include @@ -176,7 +176,7 @@ private: BlockIndex bitmap_block_index { 0 }; bool dirty { false }; NonnullOwnPtr 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 get_bitmap_block(BlockIndex); -- cgit v1.2.3