summaryrefslogtreecommitdiff
path: root/Services/NotificationServer/ClientConnection.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-07-06 13:23:39 +0200
committerAndreas Kling <kling@serenityos.org>2020-07-06 13:30:11 +0200
commit94ddb07e5884675d96a6938069fc3e83698dd898 (patch)
treebe842856035e324b8907db26853dd98eba38fd26 /Services/NotificationServer/ClientConnection.h
parentf9d3055691c98940bbf43042b1859fbf7740924d (diff)
downloadserenity-94ddb07e5884675d96a6938069fc3e83698dd898.zip
LibIPC+Services: Make ClientConnection take socket as NonnullRefPtr
This avoids getting into the awkward situation where the socket is still part-owned by main() in multi-instance service. Also it just reads nicer.
Diffstat (limited to 'Services/NotificationServer/ClientConnection.h')
-rw-r--r--Services/NotificationServer/ClientConnection.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Services/NotificationServer/ClientConnection.h b/Services/NotificationServer/ClientConnection.h
index bec07fb127..8ea04bbfff 100644
--- a/Services/NotificationServer/ClientConnection.h
+++ b/Services/NotificationServer/ClientConnection.h
@@ -40,7 +40,7 @@ public:
virtual void die() override;
private:
- explicit ClientConnection(Core::LocalSocket&, int client_id);
+ explicit ClientConnection(NonnullRefPtr<Core::LocalSocket>, int client_id);
virtual OwnPtr<Messages::NotificationServer::GreetResponse> handle(const Messages::NotificationServer::Greet&) override;
virtual OwnPtr<Messages::NotificationServer::ShowNotificationResponse> handle(const Messages::NotificationServer::ShowNotification&) override;