diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-11-04 14:03:14 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-11-04 14:03:14 +0100 |
commit | 1b2ef8582cfa33eb3f0d605dc5cf67bf6a05a017 (patch) | |
tree | 5bc55aac359d06d4978052e63c92b61e0c3854ac /Kernel/Console.cpp | |
parent | e8fee92357fb2dc28140cb8ec62fbdce5f95dac7 (diff) | |
download | serenity-1b2ef8582cfa33eb3f0d605dc5cf67bf6a05a017.zip |
Kernel: Make File's can_read/can_write take a const FileDescription&
Asking a File if we could possibly read or write it will never mutate
the asking FileDescription&, so it should be const.
Diffstat (limited to 'Kernel/Console.cpp')
-rw-r--r-- | Kernel/Console.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Console.cpp b/Kernel/Console.cpp index c405418942..0fd10a34fa 100644 --- a/Kernel/Console.cpp +++ b/Kernel/Console.cpp @@ -28,7 +28,7 @@ Console::~Console() { } -bool Console::can_read(FileDescription&) const +bool Console::can_read(const FileDescription&) const { return false; } |