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();
}
/**
* 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.
*

View File

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

View File

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

View File

@ -135,6 +135,13 @@ public:
*/
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?
* @return bool