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
parent aec1f6aa7e
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

@ -220,7 +220,7 @@ ErrorOr<int> ladybird_main(Main::Arguments arguments)
// TODO: Mach IPC
auto webcontent_socket = TRY(Core::take_over_socket_from_system_server("WebContent"sv));
auto webcontent_client = TRY(WebContent::ConnectionFromClient::try_create(make<IPC::Transport>(move(webcontent_socket))));
auto webcontent_client = WebContent::ConnectionFromClient::construct(make<IPC::Transport>(move(webcontent_socket)));
webcontent_client->on_request_server_connection = [&](auto const& socket_file) {
if (auto result = reinitialize_resource_loader(socket_file); result.is_error())