vfs: make 'File_io_service::read_ready' const

... and replace pointer argument to const reference.

Issue #4706
This commit is contained in:
Norman Feske
2022-12-07 17:12:21 +01:00
committed by Christian Helmuth
parent 1b1a9ca95c
commit ca0d3757cc
38 changed files with 113 additions and 130 deletions

View File

@ -965,12 +965,12 @@ class Vfs::Dir_file_system : public File_system
return FTRUNCATE_ERR_NO_PERM;
}
bool read_ready(Vfs_handle *handle) override
bool read_ready(Vfs_handle const &handle) const override
{
if (&handle->fs() == this)
if (&handle.fs() == this)
return true;
return handle->fs().read_ready(handle);
return handle.fs().read_ready(handle);
}
bool write_ready(Vfs_handle const &handle) const override