From c6fc9e4b2f6820696ef780b2ca64183315bde63b Mon Sep 17 00:00:00 2001 From: Lars Op den Kamp Date: Sun, 30 Oct 2011 10:25:06 +0100 Subject: [PATCH] cec: made = operator private for CCECAdapterMessage. these should not be copied --- src/lib/AdapterCommunication.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.34.1