mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:38:11 +00:00
Kernel/Net: Make the LoopbackAdapter initializer to use ErrorOr pattern
This looks much more nice, and also matches our pattern for other types of network adapters' initializers.
This commit is contained in:
parent
9f011592be
commit
bd7d4513bf
3 changed files with 6 additions and 9 deletions
|
@ -15,7 +15,7 @@ private:
|
|||
LoopbackAdapter(NonnullOwnPtr<KString>);
|
||||
|
||||
public:
|
||||
static LockRefPtr<LoopbackAdapter> try_create();
|
||||
static ErrorOr<NonnullRefPtr<LoopbackAdapter>> try_create();
|
||||
virtual ~LoopbackAdapter() override;
|
||||
|
||||
virtual ErrorOr<void> initialize(Badge<NetworkingManagement>) override { VERIFY_NOT_REACHED(); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue