mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-03-06 13:35:03 +00:00
Kernel: LoopbackAdapter::create() => try_create()
Allow this to fail (although we VERIFY that it succeeds during boot for now, since we don't want to boot without a loopback adapter.)
This commit is contained in:
@@ -11,9 +11,9 @@ namespace Kernel {
|
||||
|
||||
static bool s_loopback_initialized = false;
|
||||
|
||||
NonnullRefPtr<LoopbackAdapter> LoopbackAdapter::create()
|
||||
RefPtr<LoopbackAdapter> LoopbackAdapter::try_create()
|
||||
{
|
||||
return adopt_ref(*new LoopbackAdapter());
|
||||
return adopt_ref_if_nonnull(new LoopbackAdapter());
|
||||
}
|
||||
|
||||
LoopbackAdapter::LoopbackAdapter()
|
||||
|
||||
Reference in New Issue
Block a user