]> git.saurik.com Git - wxWidgets.git/commitdiff
added virtual dtor to wxMacListControl to silence gcc warnings
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 18 May 2006 00:52:48 +0000 (00:52 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 18 May 2006 00:52:48 +0000 (00:52 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39196 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/mac/carbon/checklst.h

index 1f63f02d4b9393bcff0cd8b0f4b19d0b585863fc..3cc70996b402f8e8f91e2297dca5ac2896e6aa25 100644 (file)
 // 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_