mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02: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:
committed by
Andreas Kling
parent
a92132e44a
commit
65edc62c02
Notes:
sideshowbarker
2024-07-18 01:07:20 +09:00
Author: https://github.com/ADKaster Commit: https://github.com/SerenityOS/serenity/commit/65edc62c025 Pull-request: https://github.com/SerenityOS/serenity/pull/10737 Reviewed-by: https://github.com/BenWiederhake Reviewed-by: https://github.com/PeterBindels-TomTom Reviewed-by: https://github.com/awesomekling Reviewed-by: https://github.com/dascandy Reviewed-by: https://github.com/trflynn89
@@ -78,7 +78,7 @@ private:
|
||||
bool m_readonly { false };
|
||||
};
|
||||
|
||||
inline FileSystem* InodeIdentifier::fs()
|
||||
inline FileSystem* InodeIdentifier::fs() // NOLINT(readability-make-member-function-const) const InodeIdentifiers should not be able to modify the FileSystem
|
||||
{
|
||||
return FileSystem::from_fsid(m_fsid);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user