From e7731242c1315df230bffbf0593e1a608aa791a3 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sat, 10 Mar 2012 21:34:47 +0000 Subject: Using references instead of pointers for sending packets git-svn-id: http://mc-server.googlecode.com/svn/trunk@394 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cClientHandle.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source/cClientHandle.h') diff --git a/source/cClientHandle.h b/source/cClientHandle.h index 65a4e5db8..2a9833de4 100644 --- a/source/cClientHandle.h +++ b/source/cClientHandle.h @@ -97,8 +97,7 @@ public: bool IsPlaying(void) const {return (m_State == csPlaying); } - void Send(const cPacket & a_Packet, ENUM_PRIORITY a_Priority = E_PRIORITY_NORMAL) { Send(&a_Packet, a_Priority); } - void Send(const cPacket * a_Packet, ENUM_PRIORITY a_Priority = E_PRIORITY_NORMAL); + void Send(const cPacket & a_Packet, ENUM_PRIORITY a_Priority = E_PRIORITY_NORMAL); const AString & GetUsername(void) const; //tolua_export -- cgit v1.2.3