From 4f9830ff2e0d27c8308226bbe2dabe834087f04a Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 19 Sep 2024 15:53:54 +0100 Subject: Make the server protocol APIs use a reference instead of a pointer. --- include/modules/server.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include/modules/server.h') diff --git a/include/modules/server.h b/include/modules/server.h index 59ddc55d2..412327341 100644 --- a/include/modules/server.h +++ b/include/modules/server.h @@ -52,18 +52,18 @@ public: /** Fired when a server has linked to the network. * @param server Server that recently linked. */ - virtual void OnServerLink(const Server* server) { } + virtual void OnServerLink(const Server& server) { } /** Fired when a server has finished bursting. * @param server Server that recently finished bursting. */ - virtual void OnServerBurst(const Server* server) { } + virtual void OnServerBurst(const Server& server) { } /** Fired when a server splits * @param server Server that split * @param error Whether the server split because of an error. */ - virtual void OnServerSplit(const Server* server, bool error) { } + virtual void OnServerSplit(const Server& server, bool error) { } }; class ServerProtocol::MessageEventListener @@ -87,7 +87,7 @@ public: * @param name The name of the command which was sent. * @param tags The tags which will be sent with the message. */ - virtual void OnBuildServerMessage(const Server* source, const char* name, ClientProtocol::TagMap& tags) { } + virtual void OnBuildServerMessage(const Server& source, const char* name, ClientProtocol::TagMap& tags) { } }; class ServerProtocol::RouteEventListener -- cgit v1.3.1-10-gc9f91