mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-18 08:20:44 +00:00
LibCore: Make IODevice::can_read_line() const
This also makes LibHTTP's Job::can_read_line() const, as IODevice was keeping that from being const. Fixes #2219
This commit is contained in:
parent
5386508119
commit
3485613f4a
Notes:
sideshowbarker
2024-07-19 06:38:54 +09:00
Author: https://github.com/alimpfard
Commit: 3485613f4a
Pull-request: https://github.com/SerenityOS/serenity/pull/2227
Issue: https://github.com/SerenityOS/serenity/issues/2219
7 changed files with 15 additions and 17 deletions
|
@ -51,8 +51,7 @@ protected:
|
|||
void on_socket_connected();
|
||||
virtual void register_on_ready_to_read(Function<void()>) = 0;
|
||||
virtual void register_on_ready_to_write(Function<void()>) = 0;
|
||||
// FIXME: I want const but Core::IODevice::can_read_line populates a cache with this
|
||||
virtual bool can_read_line() = 0;
|
||||
virtual bool can_read_line() const = 0;
|
||||
virtual ByteBuffer read_line(size_t) = 0;
|
||||
virtual bool can_read() const = 0;
|
||||
virtual ByteBuffer receive(size_t) = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue