mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-05-27 13:38:28 +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:
@@ -368,7 +368,7 @@ KeyboardDevice::~KeyboardDevice()
|
||||
{
|
||||
}
|
||||
|
||||
bool KeyboardDevice::can_read(FileDescription&) const
|
||||
bool KeyboardDevice::can_read(const FileDescription&) const
|
||||
{
|
||||
return !m_queue.is_empty();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user