mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 08:37:46 +00:00
Kernel: Resolve clang-tidy readability-make-member-function-const
... In files included from Kernel/Thread.cpp or Kernel/Process.cpp Some places the warning is suppressed, because we do not want a const object do have non-const access to the returned sub-object.
This commit is contained in:
parent
a92132e44a
commit
65edc62c02
11 changed files with 18 additions and 14 deletions
|
@ -160,7 +160,7 @@ struct [[gnu::packed]] IDTEntry
|
|||
{
|
||||
}
|
||||
|
||||
FlatPtr off()
|
||||
FlatPtr off() const
|
||||
{
|
||||
#if ARCH(I386)
|
||||
return (u32)offset_2 << 16 & (u32)offset_1;
|
||||
|
@ -168,7 +168,7 @@ struct [[gnu::packed]] IDTEntry
|
|||
return (u64)offset_3 << 32 & (u64)offset_2 << 16 & (u64)offset_1;
|
||||
#endif
|
||||
}
|
||||
IDTEntryType type()
|
||||
IDTEntryType type() const
|
||||
{
|
||||
return IDTEntryType(type_attr.gate_type);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue