mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 21:18:14 +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
|
@ -502,7 +502,7 @@ Time kgettimeofday()
|
|||
return TimeManagement::now();
|
||||
}
|
||||
|
||||
siginfo_t Process::wait_info()
|
||||
siginfo_t Process::wait_info() const
|
||||
{
|
||||
siginfo_t siginfo {};
|
||||
siginfo.si_signo = SIGCHLD;
|
||||
|
@ -889,7 +889,7 @@ static constexpr StringView to_string(Pledge promise)
|
|||
VERIFY_NOT_REACHED();
|
||||
}
|
||||
|
||||
void Process::require_no_promises()
|
||||
void Process::require_no_promises() const
|
||||
{
|
||||
if (!has_promises())
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue