mirror of
https://github.com/RGBCube/serenity
synced 2025-05-20 14:15:07 +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
|
@ -344,7 +344,7 @@ void GDirectoryModel::open(const StringView& a_path)
|
|||
perror("watch_file");
|
||||
ASSERT_NOT_REACHED();
|
||||
}
|
||||
m_notifier = CNotifier::create(watch_fd, CNotifier::Event::Read);
|
||||
m_notifier = CNotifier::construct(watch_fd, CNotifier::Event::Read);
|
||||
m_notifier->on_ready_to_read = [this] {
|
||||
update();
|
||||
char buffer[32];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue