diff options
Diffstat (limited to 'Services/ProtocolServer')
-rw-r--r-- | Services/ProtocolServer/ClientConnection.cpp | 4 | ||||
-rw-r--r-- | Services/ProtocolServer/ClientConnection.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Services/ProtocolServer/ClientConnection.cpp b/Services/ProtocolServer/ClientConnection.cpp index 21c23d3ec8..2b72ef0025 100644 --- a/Services/ProtocolServer/ClientConnection.cpp +++ b/Services/ProtocolServer/ClientConnection.cpp @@ -35,8 +35,8 @@ namespace ProtocolServer { static HashMap<int, RefPtr<ClientConnection>> s_connections; -ClientConnection::ClientConnection(Core::LocalSocket& socket, int client_id) - : IPC::ClientConnection<ProtocolServerEndpoint>(*this, socket, client_id) +ClientConnection::ClientConnection(NonnullRefPtr<Core::LocalSocket> socket, int client_id) + : IPC::ClientConnection<ProtocolServerEndpoint>(*this, move(socket), client_id) { s_connections.set(client_id, *this); } diff --git a/Services/ProtocolServer/ClientConnection.h b/Services/ProtocolServer/ClientConnection.h index cb0ca45b23..bedba4801f 100644 --- a/Services/ProtocolServer/ClientConnection.h +++ b/Services/ProtocolServer/ClientConnection.h @@ -39,7 +39,7 @@ class ClientConnection final C_OBJECT(ClientConnection); public: - explicit ClientConnection(Core::LocalSocket&, int client_id); + explicit ClientConnection(NonnullRefPtr<Core::LocalSocket>, int client_id); ~ClientConnection() override; virtual void die() override; |