mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 22:48:11 +00:00
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.
This commit is contained in:
parent
e1f5aae632
commit
7b745a20f1
11 changed files with 11 additions and 11 deletions
|
@ -38,6 +38,6 @@ private:
|
|||
virtual bool is_file_backed() const override { return true; }
|
||||
|
||||
IntrusiveListNode<FileBackedFileSystem> m_file_backed_file_system_node;
|
||||
NonnullRefPtr<OpenFileDescription> m_file_description;
|
||||
NonnullRefPtr<OpenFileDescription> const m_file_description;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue