1
Fork 0
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:
Andreas Kling 2021-09-07 13:57:33 +02:00
parent 01993d0af3
commit 631b8e90cd
3 changed files with 6 additions and 18 deletions

View file

@ -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; }