mirror of
https://github.com/RGBCube/serenity
synced 2025-05-15 07:24:58 +00:00
Kernel: Tidy up ProcessProcFSTraits construction a bit more
Let the constructor take a Process& instead of a WeakPtr<Process> and avoid a bunch of WeakPtr copying.
This commit is contained in:
parent
b481132418
commit
db2e67fd53
2 changed files with 4 additions and 4 deletions
|
@ -268,7 +268,7 @@ KResult Process::attach_resources(NonnullOwnPtr<Memory::AddressSpace>&& prealloc
|
|||
first_thread->detach();
|
||||
}
|
||||
|
||||
m_procfs_traits = TRY(ProcessProcFSTraits::try_create({}, make_weak_ptr()));
|
||||
m_procfs_traits = TRY(ProcessProcFSTraits::try_create({}, *this));
|
||||
return KSuccess;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue