mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +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
Notes:
sideshowbarker
2024-07-17 07:43:44 +09:00
Author: https://github.com/supercomputer7
Commit: 7b745a20f1
Pull-request: https://github.com/SerenityOS/serenity/pull/18217
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