mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:57:44 +00:00
Kernel: Use KResultOr and TRY() for MasterPTY
This commit is contained in:
parent
01993d0af3
commit
631b8e90cd
3 changed files with 6 additions and 18 deletions
|
@ -16,7 +16,7 @@ class SlavePTY;
|
|||
|
||||
class MasterPTY final : public CharacterDevice {
|
||||
public:
|
||||
[[nodiscard]] static RefPtr<MasterPTY> try_create(unsigned index);
|
||||
static KResultOr<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