summaryrefslogtreecommitdiff
path: root/Libraries/LibCore/CoreIPCServer.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-09-21 10:13:34 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-09-21 15:25:08 +0200
commit4298ba25c3b9909781cebc4719af82056591572b (patch)
tree3db1fec1e15388d8cd60054bff990e9ffef8fbfc /Libraries/LibCore/CoreIPCServer.h
parent1f5a9762a2b9e3449be7e61327c100d2e1f3e9db (diff)
downloadserenity-4298ba25c3b9909781cebc4719af82056591572b.zip
LibCore: Convert CTCPSocket to ObjectPtr, add construct() helper
The C_OBJECT macro now also inserts a static construct(...) helper into the class. Now we can make the constructor(s) private and instead call: auto socket = CTCPSocket::construct(arguments); construct() returns an ObjectPtr<T>, which we'll later switch to being a NonnullRefPtr<T>, once everything else in in place for ref-counting.
Diffstat (limited to 'Libraries/LibCore/CoreIPCServer.h')
-rw-r--r--Libraries/LibCore/CoreIPCServer.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/Libraries/LibCore/CoreIPCServer.h b/Libraries/LibCore/CoreIPCServer.h
index 69a1681eb1..dd65494e94 100644
--- a/Libraries/LibCore/CoreIPCServer.h
+++ b/Libraries/LibCore/CoreIPCServer.h
@@ -64,7 +64,6 @@ namespace Server {
template<typename ServerMessage, typename ClientMessage>
class Connection : public CObject {
- C_OBJECT(Connection)
public:
Connection(CLocalSocket& socket, int client_id)
: m_socket(socket)
@@ -206,7 +205,6 @@ namespace Server {
template<typename Endpoint>
class ConnectionNG : public CObject {
- C_OBJECT(Connection)
public:
ConnectionNG(Endpoint& endpoint, CLocalSocket& socket, int client_id)
: m_endpoint(endpoint)