1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 18:28:12 +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:
Sam Atkins 2021-12-02 11:17:35 +00:00 committed by Andreas Kling
parent c67c1b583a
commit 92f8514a85
12 changed files with 13 additions and 13 deletions

View file

@ -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();
}