mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:47:45 +00:00
LibCore: Convert CTCPServer to ObjectPtr
Also get rid of the custom CNotifier::create() in favor of construct().
This commit is contained in:
parent
bce58bbbca
commit
4ea229accd
12 changed files with 23 additions and 27 deletions
|
@ -14,11 +14,6 @@ public:
|
|||
Exceptional = 4,
|
||||
};
|
||||
|
||||
static ObjectPtr<CNotifier> create(int fd, unsigned event_mask, CObject* parent = nullptr)
|
||||
{
|
||||
return new CNotifier(fd, event_mask, parent);
|
||||
}
|
||||
|
||||
virtual ~CNotifier() override;
|
||||
|
||||
void set_enabled(bool);
|
||||
|
@ -33,7 +28,7 @@ public:
|
|||
void event(CEvent&) override;
|
||||
|
||||
private:
|
||||
CNotifier(int fd, unsigned event_mask, CObject* parent);
|
||||
CNotifier(int fd, unsigned event_mask, CObject* parent = nullptr);
|
||||
|
||||
int m_fd { -1 };
|
||||
unsigned m_event_mask { 0 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue