mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:57:35 +00:00
Kernel/TTY: Don't return NonnullLockRefPtr when creating MasterPTY
We can just return a normal NonnullRefPtr because nobody needs an actual *LockRefPtrs here anymore.
This commit is contained in:
parent
82428e2a05
commit
b49f2937f0
2 changed files with 4 additions and 4 deletions
|
@ -16,7 +16,7 @@ class SlavePTY;
|
|||
|
||||
class MasterPTY final : public CharacterDevice {
|
||||
public:
|
||||
static ErrorOr<NonnullLockRefPtr<MasterPTY>> try_create(unsigned index);
|
||||
static ErrorOr<NonnullRefPtr<MasterPTY>> try_create(unsigned index);
|
||||
virtual ~MasterPTY() override;
|
||||
|
||||
unsigned index() const { return m_index; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue