mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 01:29:17 +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
Notes:
sideshowbarker
2024-07-19 12:02:18 +09:00
Author: https://github.com/awesomekling
Commit: 4ea229accd
12 changed files with 23 additions and 27 deletions
|
@ -56,7 +56,7 @@ void IRCClient::set_server(const String& hostname, int port)
|
|||
|
||||
void IRCClient::on_socket_connected()
|
||||
{
|
||||
m_notifier = CNotifier::create(m_socket->fd(), CNotifier::Read);
|
||||
m_notifier = CNotifier::construct(m_socket->fd(), CNotifier::Read);
|
||||
m_notifier->on_ready_to_read = [this] { receive_from_server(); };
|
||||
|
||||
send_user();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue