From: Lars Op den Kamp Date: Sat, 25 Feb 2012 10:16:57 +0000 (+0100) Subject: osx compiler was complaining about non-virtual destructors in the interface structs... X-Git-Tag: upstream/2.2.0~1^2~33^2~35 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=9ceaabcd6eabe161b36056153c5513ab95be29a8;p=deb_libcec.git osx compiler was complaining about non-virtual destructors in the interface structs. fixed --- diff --git a/src/lib/adapter/AdapterCommunication.h b/src/lib/adapter/AdapterCommunication.h index 9ee2951..38d0a13 100644 --- a/src/lib/adapter/AdapterCommunication.h +++ b/src/lib/adapter/AdapterCommunication.h @@ -46,9 +46,12 @@ namespace CEC ADAPTER_MESSAGE_STATE_ERROR /**< an error occured */ } cec_adapter_message_state; - struct IAdapterCommunicationCallback + class IAdapterCommunicationCallback { public: + IAdapterCommunicationCallback(void) {} + virtual ~IAdapterCommunicationCallback(void) {} + /*! * @brief Callback method for IAdapterCommunication, called when a new cec_command is received * @param command The command that has been received @@ -57,9 +60,12 @@ namespace CEC virtual bool OnCommandReceived(const cec_command &command) = 0; }; - struct IAdapterCommunication + class IAdapterCommunication { public: + IAdapterCommunication(void) {} + virtual ~IAdapterCommunication(void) {} + /*! * @brief Open a connection to the CEC adapter * @param cb The callback struct. if set to NULL, the Read() method has to be used to read commands. if set, OnCommandReceived() will be called for each command that was received