|
@@ -718,7 +718,7 @@ public:
|
|
|
|
|
|
class ProcessProcFSTraits : public ProcFSExposedComponent {
|
|
|
public:
|
|
|
- static KResultOr<NonnullRefPtr<ProcessProcFSTraits>> try_create(Badge<Process>, WeakPtr<Process> process)
|
|
|
+ static KResultOr<NonnullRefPtr<ProcessProcFSTraits>> try_create(Badge<Process>, Process& process)
|
|
|
{
|
|
|
return adopt_nonnull_ref_or_enomem(new (nothrow) ProcessProcFSTraits(process));
|
|
|
}
|
|
@@ -732,8 +732,8 @@ public:
|
|
|
virtual GroupID owner_group() const override;
|
|
|
|
|
|
private:
|
|
|
- ProcessProcFSTraits(WeakPtr<Process> process)
|
|
|
- : m_process(process)
|
|
|
+ explicit ProcessProcFSTraits(Process& process)
|
|
|
+ : m_process(process.make_weak_ptr())
|
|
|
{
|
|
|
}
|
|
|
|