mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 08:48:11 +00:00
Kernel: Make SlavePTY store pointer to MasterPTY as NonnullRefPtr
No need for LockRefPtr here, as the pointer never changes after initialization.
This commit is contained in:
parent
e69b2572a6
commit
37bfc36601
2 changed files with 4 additions and 4 deletions
|
@ -35,9 +35,9 @@ bool SlavePTY::unref() const
|
|||
return did_hit_zero;
|
||||
}
|
||||
|
||||
SlavePTY::SlavePTY(MasterPTY& master, unsigned index)
|
||||
SlavePTY::SlavePTY(NonnullRefPtr<MasterPTY> master, unsigned index)
|
||||
: TTY(201, index)
|
||||
, m_master(master)
|
||||
, m_master(move(master))
|
||||
, m_index(index)
|
||||
{
|
||||
auto& process = Process::current();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue