From 6cc25c4b27191e5332f0e388f86d2d6f775da445 Mon Sep 17 00:00:00 2001 From: Emiel Bruijntjes Date: Fri, 29 Aug 2014 13:24:24 +0200 Subject: [PATCH] removed operator= from channels and connections --- include/channel.h | 7 +++++++ include/channelimpl.h | 7 +++++++ include/connection.h | 7 +++++++ include/connectionimpl.h | 7 +++++++ 4 files changed, 28 insertions(+) diff --git a/include/channel.h b/include/channel.h index 36f6637..e3e585e 100644 --- a/include/channel.h +++ b/include/channel.h @@ -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. * diff --git a/include/channelimpl.h b/include/channelimpl.h index 665b6fe..284edff 100644 --- a/include/channelimpl.h +++ b/include/channelimpl.h @@ -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 diff --git a/include/connection.h b/include/connection.h index 6643d19..2de2d9e 100644 --- a/include/connection.h +++ b/include/connection.h @@ -64,6 +64,13 @@ public: * Destructor */ virtual ~Connection() {} + + /** + * No assignments of other connections + * @param connection + * @return Connection + */ + Connection &operator=(const Connection &connection) = delete; /** * Retrieve the login data diff --git a/include/connectionimpl.h b/include/connectionimpl.h index 1dcf46b..0c55f45 100644 --- a/include/connectionimpl.h +++ b/include/connectionimpl.h @@ -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