mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
Services: Cast unused IPC::new_client_connection() results to void
These ones all manage their storage internally, whereas the WebContent and ImageDecoder ones require the caller to manage their lifetime. This distinction is not obvious to the user without looking through the code, so an API that makes this clearer would be nice.
This commit is contained in:
committed by
Andreas Kling
parent
c67c1b583a
commit
92f8514a85
@@ -26,6 +26,6 @@ ErrorOr<int> serenity_main(Main::Arguments)
|
||||
TRY(Core::System::unveil(nullptr, nullptr));
|
||||
|
||||
auto socket = TRY(Core::LocalSocket::take_over_accepted_socket_from_system_server());
|
||||
IPC::new_client_connection<WebSocket::ClientConnection>(move(socket), 1);
|
||||
(void)IPC::new_client_connection<WebSocket::ClientConnection>(move(socket), 1);
|
||||
return event_loop.exec();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user