summaryrefslogtreecommitdiff
path: root/Kernel/VM
diff options
context:
space:
mode:
authorBen Wiederhake <BenWiederhake.GitHub@gmx.de>2020-09-12 00:44:54 +0200
committerAndreas Kling <kling@serenityos.org>2020-09-12 13:46:15 +0200
commit0d79e57c4daec516cef064f4cbbb8a3e17962f9f (patch)
treedddcf60fdfd0bcc5d07df4ddb01cb552fb58735a /Kernel/VM
parentd16f5108055b1f84cd71859b3034357e7e41eb4b (diff)
downloadserenity-0d79e57c4daec516cef064f4cbbb8a3e17962f9f.zip
Kernel: Fix various forward declarations
I decided to modify MappedROM.h because all other entried in Forward.h are also classes, and this is visually more pleasing. Other than that, it just doesn't make any difference which way we resolve the conflicts.
Diffstat (limited to 'Kernel/VM')
-rw-r--r--Kernel/VM/MappedROM.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Kernel/VM/MappedROM.h b/Kernel/VM/MappedROM.h
index 9be57c2f45..26caff10d8 100644
--- a/Kernel/VM/MappedROM.h
+++ b/Kernel/VM/MappedROM.h
@@ -31,7 +31,8 @@
namespace Kernel {
-struct MappedROM {
+class MappedROM {
+public:
const u8* base() const { return region->vaddr().offset(offset).as_ptr(); }
const u8* end() const { return base() + size; }
OwnPtr<Region> region;