removed operator= from channels and connections

This commit is contained in:
Emiel Bruijntjes 2014-08-29 13:24:24 +02:00
parent aceac8b677
commit 6cc25c4b27
4 changed files with 28 additions and 0 deletions

View File

@ -48,6 +48,13 @@ public:
_implementation->close(); _implementation->close();
} }
/**
* No assignments of other channels
* @param channel
* @return Channel
*/
Channel &operator=(const Channel &channel) = delete;
/** /**
* Callback that is called when the channel was succesfully created. * Callback that is called when the channel was succesfully created.
* *

View File

@ -144,6 +144,13 @@ public:
*/ */
virtual ~ChannelImpl(); virtual ~ChannelImpl();
/**
* No assignments of other channels
* @param channel
* @return Channel
*/
ChannelImpl &operator=(const ChannelImpl &channel) = delete;
/** /**
* Invalidate the channel * Invalidate the channel
* This method is called when the connection is destructed * This method is called when the connection is destructed

View File

@ -64,6 +64,13 @@ public:
* Destructor * Destructor
*/ */
virtual ~Connection() {} virtual ~Connection() {}
/**
* No assignments of other connections
* @param connection
* @return Connection
*/
Connection &operator=(const Connection &connection) = delete;
/** /**
* Retrieve the login data * Retrieve the login data

View File

@ -135,6 +135,13 @@ public:
*/ */
virtual ~ConnectionImpl(); virtual ~ConnectionImpl();
/**
* No assignments of other connections
* @param connection
* @return ConnectionImpl
*/
ConnectionImpl &operator=(const ConnectionImpl &connection) = delete;
/** /**
* What is the state of the connection - is the protocol handshake completed? * What is the state of the connection - is the protocol handshake completed?
* @return bool * @return bool