LibCore: Remove macro-generated EventReceiver::try_create(...) factories

We can just use the infallible factory everywhere instead.
This commit is contained in:
Andreas Kling 2025-08-11 12:29:33 +02:00 committed by Andreas Kling
commit bd7599ccfc
Notes: github-actions[bot] 2025-08-11 14:56:51 +00:00
9 changed files with 18 additions and 23 deletions

View file

@ -67,7 +67,7 @@ ErrorOr<void> BrowserProcess::connect_as_server(ByteString const& socket_path)
// TODO: Mach IPC
auto socket_fd = TRY(Process::create_ipc_socket(socket_path));
m_socket_path = socket_path;
auto local_server = TRY(Core::LocalServer::try_create());
auto local_server = Core::LocalServer::construct();
TRY(local_server->take_over_fd(socket_fd));
m_server_connection = TRY(IPC::MultiServer<UIProcessConnectionFromClient>::try_create(move(local_server)));