summaryrefslogtreecommitdiff
path: root/Kernel/Devices/Device.h
diff options
context:
space:
mode:
authorLiav A <liavalb@gmail.com>2022-03-31 23:57:25 +0300
committerLinus Groh <mail@linusgroh.de>2022-04-01 12:56:04 +0100
commit231b9f256b78fbb2f12216c74d7bf1e934e005f9 (patch)
treee85b82ef4d674a0e9f5a36048603619e15279fe2 /Kernel/Devices/Device.h
parent7334636933a35a58f0fa62d5c5ebf16c7b7f586c (diff)
downloadserenity-231b9f256b78fbb2f12216c74d7bf1e934e005f9.zip
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.
Diffstat (limited to 'Kernel/Devices/Device.h')
-rw-r--r--Kernel/Devices/Device.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Devices/Device.h b/Kernel/Devices/Device.h
index 7e9df0186d..9546c0927c 100644
--- a/Kernel/Devices/Device.h
+++ b/Kernel/Devices/Device.h
@@ -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 };