mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
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.
This commit is contained in:
parent
e8fee92357
commit
1b2ef8582c
Notes:
sideshowbarker
2024-07-19 11:23:46 +09:00
Author: https://github.com/awesomekling
Commit: 1b2ef8582c
47 changed files with 97 additions and 91 deletions
|
@ -255,7 +255,7 @@ u8 PS2MouseDevice::mouse_read()
|
|||
return IO::in8(I8042_BUFFER);
|
||||
}
|
||||
|
||||
bool PS2MouseDevice::can_read(FileDescription&) const
|
||||
bool PS2MouseDevice::can_read(const FileDescription&) const
|
||||
{
|
||||
return !m_queue.is_empty();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue