more use of NonCopyable
This commit is contained in:
@@ -18,7 +18,7 @@ namespace protocol {
|
||||
* \class PacketVisitor
|
||||
* \brief This class uses double-dispatch in order to find the real type of a packet
|
||||
*/
|
||||
class PacketVisitor {
|
||||
class PacketVisitor : private NonCopyable {
|
||||
protected:
|
||||
PacketVisitor() {}
|
||||
virtual ~PacketVisitor() {}
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
* \brief File containing the definitions of the packets
|
||||
*/
|
||||
|
||||
#include <blitz/common/NonCopyable.h>
|
||||
#include <blitz/protocol/PacketData.h>
|
||||
#include <blitz/protocol/PacketDeclare.h>
|
||||
|
||||
@@ -34,7 +35,7 @@ enum class PacketType : PacketID {
|
||||
#undef DeclarePacket
|
||||
|
||||
|
||||
class Packet {
|
||||
class Packet : private NonCopyable {
|
||||
public:
|
||||
/**
|
||||
* \return The real type of the packet
|
||||
|
||||
Reference in New Issue
Block a user