mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
Everywhere: Make TransportSocket non-movable
Instead of wrapping all non-movable members of TransportSocket in OwnPtr to keep it movable, make TransportSocket itself non-movable and wrap it in OwnPtr.
This commit is contained in:
parent
79c22e0d86
commit
db8c443392
Notes:
github-actions[bot]
2025-04-09 13:28:53 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: db8c443392
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4287
42 changed files with 97 additions and 100 deletions
|
@ -27,7 +27,7 @@ static ErrorOr<NonnullRefPtr<WebUIType>> create_web_ui(WebContentClient& client,
|
|||
return client_socket.release_error();
|
||||
}
|
||||
|
||||
auto web_ui = WebUIType::create(client, IPC::Transport { client_socket.release_value() }, move(host));
|
||||
auto web_ui = WebUIType::create(client, make<IPC::Transport>(client_socket.release_value()), move(host));
|
||||
client.async_connect_to_web_ui(0, IPC::File::adopt_fd(socket_fds[1]));
|
||||
|
||||
return web_ui;
|
||||
|
@ -48,7 +48,7 @@ ErrorOr<RefPtr<WebUI>> WebUI::create(WebContentClient& client, String host)
|
|||
return web_ui;
|
||||
}
|
||||
|
||||
WebUI::WebUI(WebContentClient& client, IPC::Transport transport, String host)
|
||||
WebUI::WebUI(WebContentClient& client, NonnullOwnPtr<IPC::Transport> transport, String host)
|
||||
: IPC::ConnectionToServer<WebUIClientEndpoint, WebUIServerEndpoint>(*this, move(transport))
|
||||
, m_client(client)
|
||||
, m_host(move(host))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue