mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-05 07:41:01 +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
Notes:
sideshowbarker
2024-07-19 12:37:04 +09:00
Author: https://github.com/awesomekling
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