mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-30 13:19:47 +00:00
Kernel: Use try_make_weak_ptr() instead of make_weak_ptr()
This commit is contained in:
committed by
Andreas Kling
parent
98c20b65cc
commit
c8ab7bde3b
@@ -266,7 +266,8 @@ ErrorOr<void> Process::attach_resources(NonnullOwnPtr<Memory::AddressSpace>&& pr
|
||||
first_thread->detach();
|
||||
}
|
||||
|
||||
m_procfs_traits = TRY(ProcessProcFSTraits::try_create({}, *this));
|
||||
auto weak_ptr = TRY(this->try_make_weak_ptr());
|
||||
m_procfs_traits = TRY(ProcessProcFSTraits::try_create({}, move(weak_ptr)));
|
||||
return {};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user