mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-07 21:59:54 +00:00
LibCore: Remove macro-generated EventReceiver::try_create(...) factories
We can just use the infallible factory everywhere instead.
This commit is contained in:
parent
aec1f6aa7e
commit
bd7599ccfc
Notes:
github-actions[bot]
2025-08-11 14:56:51 +00:00
Author: https://github.com/awesomekling
Commit: bd7599ccfc
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5817
Reviewed-by: https://github.com/gmta ✅
9 changed files with 18 additions and 23 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue