diff options
author | Andreas Kling <kling@serenityos.org> | 2021-08-06 22:25:00 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-08-06 22:25:00 +0200 |
commit | 2cd8b21974993052fdcb0bddfa62423dbeb6002a (patch) | |
tree | 25a7b2de5cf157d17ae71224cf3ae3ee3574959c /Kernel/KBufferBuilder.cpp | |
parent | 47bdd7c3a01b7e21e56a5d1dd40b18e9ed43f466 (diff) | |
download | serenity-2cd8b21974993052fdcb0bddfa62423dbeb6002a.zip |
Kernel: Add convenience values to the Memory::Region::Access enum
Instead of `Memory::Region::Access::Read | Memory::Region::AccessWrite`
you can now say `Memory::Region::Access::ReadWrite`.
Diffstat (limited to 'Kernel/KBufferBuilder.cpp')
-rw-r--r-- | Kernel/KBufferBuilder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/KBufferBuilder.cpp b/Kernel/KBufferBuilder.cpp index d8982dda96..04eb90b58d 100644 --- a/Kernel/KBufferBuilder.cpp +++ b/Kernel/KBufferBuilder.cpp @@ -41,7 +41,7 @@ OwnPtr<KBuffer> KBufferBuilder::build() } KBufferBuilder::KBufferBuilder() - : m_buffer(KBufferImpl::try_create_with_size(4 * MiB, Memory::Region::Access::Read | Memory::Region::Access::Write)) + : m_buffer(KBufferImpl::try_create_with_size(4 * MiB, Memory::Region::Access::ReadWrite)) { } |