From: Lars Op den Kamp Date: Sun, 30 Oct 2011 09:25:06 +0000 (+0100) Subject: cec: made = operator private for CCECAdapterMessage. these should not be copied X-Git-Tag: upstream/2.2.0~1^2~179 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=c6fc9e4b2f6820696ef780b2ca64183315bde63b;hp=271e7778636b66aa854b31288c351b774d91bd79;p=deb_libcec.git cec: made = operator private for CCECAdapterMessage. these should not be copied --- diff --git a/src/lib/AdapterCommunication.h b/src/lib/AdapterCommunication.h index 29b716a..5e099d8 100644 --- a/src/lib/AdapterCommunication.h +++ b/src/lib/AdapterCommunication.h @@ -45,7 +45,6 @@ namespace CEC public: CCECAdapterMessage(void) {} CCECAdapterMessage(const cec_command &command); - CCECAdapterMessage &operator =(const CCECAdapterMessage &msg); bool empty(void) const { return packet.empty(); } uint8_t operator[](uint8_t pos) const { return packet[pos]; } @@ -62,6 +61,9 @@ namespace CEC void push_escaped(int16_t byte); cec_datapacket packet; + + private: + CCECAdapterMessage &operator =(const CCECAdapterMessage &msg); }; typedef boost::shared_ptr CCECAdapterMessagePtr;