mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
Kernel: Declare Device major and minor data member numbers as const
This is just another "safety guard" to ensure these numbers don't ever change after being set for a certain Device at construction time.
This commit is contained in:
parent
7334636933
commit
231b9f256b
Notes:
sideshowbarker
2024-07-17 17:49:11 +09:00
Author: https://github.com/supercomputer7 Commit: https://github.com/SerenityOS/serenity/commit/231b9f256b Pull-request: https://github.com/SerenityOS/serenity/pull/13387 Reviewed-by: https://github.com/linusg
1 changed files with 2 additions and 2 deletions
|
@ -68,8 +68,8 @@ protected:
|
|||
void set_gid(GroupID gid) { m_gid = gid; }
|
||||
|
||||
private:
|
||||
MajorNumber m_major { 0 };
|
||||
MinorNumber m_minor { 0 };
|
||||
MajorNumber const m_major { 0 };
|
||||
MinorNumber const m_minor { 0 };
|
||||
UserID m_uid { 0 };
|
||||
GroupID m_gid { 0 };
|
||||
|
||||
|
|
Loading…
Reference in a new issue