diff options
author | Liav A <liavalb@gmail.com> | 2023-04-07 14:49:49 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-04-08 13:44:21 +0200 |
commit | 7b745a20f17a4212debd153f66337980b93e830b (patch) | |
tree | db51b399688e22d760c6a4844b1d5790dcf5b189 /Kernel/Storage/ATA/AHCI/Port.h | |
parent | e1f5aae632ceac5dd615991a61058ba17bab402a (diff) | |
download | serenity-7b745a20f17a4212debd153f66337980b93e830b.zip |
Kernel: Mark a bunch of NonnullRefPtrs also const to ensure immutability
These were easy to pick-up as these pointers are assigned during the
construction point and are never changed afterwards.
This small change to these pointers will ensure that our code will not
accidentally assign these pointers with a new object which is always a
kind of bug we will want to prevent.
Diffstat (limited to 'Kernel/Storage/ATA/AHCI/Port.h')
-rw-r--r-- | Kernel/Storage/ATA/AHCI/Port.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Storage/ATA/AHCI/Port.h b/Kernel/Storage/ATA/AHCI/Port.h index 6b501bf26b..8818d36190 100644 --- a/Kernel/Storage/ATA/AHCI/Port.h +++ b/Kernel/Storage/ATA/AHCI/Port.h @@ -123,7 +123,7 @@ private: // it's probably better to just "cache" this here instead. AHCI::HBADefinedCapabilities const m_hba_capabilities; - NonnullRefPtr<Memory::PhysicalPage> m_identify_buffer_page; + NonnullRefPtr<Memory::PhysicalPage> const m_identify_buffer_page; volatile AHCI::PortRegisters& m_port_registers; LockWeakPtr<AHCIController> m_parent_controller; |