summaryrefslogtreecommitdiff
path: root/Kernel/Memory/Region.cpp
diff options
context:
space:
mode:
authorHendiadyoin1 <leon2002.la@gmail.com>2021-12-28 19:54:05 +0100
committerBrian Gianforcaro <b.gianfo@gmail.com>2022-01-09 23:29:57 -0800
commit1cdace78986da640acf09ee9b106405e73c3a24c (patch)
tree18de510e49629a0cf00d3612fdf8eec39d83fb6a /Kernel/Memory/Region.cpp
parentae8c7eebbd9aca8f78541b778a0915dafa05bed3 (diff)
downloadserenity-1cdace78986da640acf09ee9b106405e73c3a24c.zip
Kernel: Add implied auto qualifiers in Memory
Diffstat (limited to 'Kernel/Memory/Region.cpp')
-rw-r--r--Kernel/Memory/Region.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Memory/Region.cpp b/Kernel/Memory/Region.cpp
index 5132ec9835..9e3655904d 100644
--- a/Kernel/Memory/Region.cpp
+++ b/Kernel/Memory/Region.cpp
@@ -132,7 +132,7 @@ size_t Region::amount_resident() const
{
size_t bytes = 0;
for (size_t i = 0; i < page_count(); ++i) {
- auto* page = physical_page(i);
+ auto const* page = physical_page(i);
if (page && !page->is_shared_zero_page() && !page->is_lazy_committed_page())
bytes += PAGE_SIZE;
}
@@ -143,7 +143,7 @@ size_t Region::amount_shared() const
{
size_t bytes = 0;
for (size_t i = 0; i < page_count(); ++i) {
- auto* page = physical_page(i);
+ auto const* page = physical_page(i);
if (page && page->ref_count() > 1 && !page->is_shared_zero_page() && !page->is_lazy_committed_page())
bytes += PAGE_SIZE;
}