mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:17:44 +00:00
Kernel: Make DoubleBuffer::try() return KResultOr
This tidies up error propagation in a number of places.
This commit is contained in:
parent
213b8868af
commit
01993d0af3
8 changed files with 23 additions and 32 deletions
|
@ -90,7 +90,7 @@ protected:
|
|||
void set_local_address(IPv4Address address) { m_local_address = address; }
|
||||
void set_peer_address(IPv4Address address) { m_peer_address = address; }
|
||||
|
||||
static OwnPtr<DoubleBuffer> create_receive_buffer();
|
||||
static KResultOr<NonnullOwnPtr<DoubleBuffer>> try_create_receive_buffer();
|
||||
|
||||
private:
|
||||
virtual bool is_ipv4() const override { return true; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue