mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 08:58:11 +00:00
LibCore: Make CSocket's notifiers into children of the CSocket
The Inspector app quickly exposes crappy flat object hiearchies without parent/child relationships. This is one of many commits that improves the situation by making parent/child CObject relationships explicit.
This commit is contained in:
parent
9d57e7ed68
commit
1b3599fbbc
3 changed files with 6 additions and 5 deletions
|
@ -2,8 +2,9 @@
|
|||
#include <LibCore/CEventLoop.h>
|
||||
#include <LibCore/CNotifier.h>
|
||||
|
||||
CNotifier::CNotifier(int fd, unsigned event_mask)
|
||||
: m_fd(fd)
|
||||
CNotifier::CNotifier(int fd, unsigned event_mask, CObject* parent)
|
||||
: CObject(parent)
|
||||
, m_fd(fd)
|
||||
, m_event_mask(event_mask)
|
||||
{
|
||||
set_enabled(true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue