mirror of
https://github.com/RGBCube/serenity
synced 2025-05-19 00:15:08 +00:00
LibCore: Convert CLocalSocket to ObjectPtr
This commit is contained in:
parent
4298ba25c3
commit
c83da29a9d
13 changed files with 83 additions and 79 deletions
|
@ -39,7 +39,7 @@ bool CLocalServer::listen(const String& address)
|
|||
return true;
|
||||
}
|
||||
|
||||
CLocalSocket* CLocalServer::accept()
|
||||
ObjectPtr<CLocalSocket> CLocalServer::accept()
|
||||
{
|
||||
ASSERT(m_listening);
|
||||
sockaddr_un un;
|
||||
|
@ -50,5 +50,5 @@ CLocalSocket* CLocalServer::accept()
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
return new CLocalSocket({}, accepted_fd);
|
||||
return CLocalSocket::construct(accepted_fd);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue