From: Vadim Zeitlin Date: Thu, 18 May 2006 00:52:48 +0000 (+0000) Subject: added virtual dtor to wxMacListControl to silence gcc warnings X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/6ab4491a6ddc260e6ff038ccdcf1df22bef9ae89?ds=inline added virtual dtor to wxMacListControl to silence gcc warnings git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39196 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/mac/carbon/checklst.h b/include/wx/mac/carbon/checklst.h index 1f63f02d4b..3cc70996b4 100644 --- a/include/wx/mac/carbon/checklst.h +++ b/include/wx/mac/carbon/checklst.h @@ -10,21 +10,22 @@ // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// -#ifndef _WX_CHECKLST_H_ -#define _WX_CHECKLST_H_ +#ifndef _WX_MAC_CHECKLST_H_ +#define _WX_MAC_CHECKLST_H_ -class wxMacCheckListControl +class wxMacCheckListControl { public : virtual bool MacIsChecked(unsigned int n) const = 0; virtual void MacCheck(unsigned int n, bool bCheck = true) = 0; + + virtual ~wxMacCheckListControl() { } }; class WXDLLEXPORT wxCheckListBox : public wxCheckListBoxBase { - DECLARE_DYNAMIC_CLASS(wxCheckListBox) public: - // ctors + // ctors wxCheckListBox() { Init(); } wxCheckListBox(wxWindow *parent, wxWindowID id, @@ -80,10 +81,10 @@ public: protected: void Init(); -private: +private: DECLARE_EVENT_TABLE() + DECLARE_DYNAMIC_CLASS(wxCheckListBox) }; -#endif - // _WX_CHECKLST_H_ +#endif // _WX_MAC_CHECKLST_H_