]> git.saurik.com Git - wxWidgets.git/blobdiff - src/x11/region.cpp
fix warnings about unused parameters and functions in wxUniv build; also clean up...
[wxWidgets.git] / src / x11 / region.cpp
index 14496f4b2cb12797888cf95f9808d5708d9e8cb9..02b26b16004b81ad1c184e00d9db961368b26a54 100644 (file)
 #include "wx/wxprec.h"
 
 #include "wx/region.h"
-#include "wx/gdicmn.h"
-#include "wx/log.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/log.h"
+    #include "wx/gdicmn.h"
+#endif
 
 #ifdef __VMS__
 #pragma message disable nosimpint
@@ -42,7 +45,7 @@ public:
         XUnionRegion( refData.m_region, m_region, m_region );
     }
 
-    ~wxRegionRefData()
+    virtual ~wxRegionRefData()
     {
         if (m_region)
             XDestroyRegion( m_region );
@@ -58,8 +61,8 @@ public:
 #define M_REGIONDATA ((wxRegionRefData *)m_refData)
 #define M_REGIONDATA_OF(rgn) ((wxRegionRefData *)(rgn.m_refData))
 
-IMPLEMENT_DYNAMIC_CLASS(wxRegion, wxGDIObject);
-IMPLEMENT_DYNAMIC_CLASS(wxRegionIterator,wxObject);
+IMPLEMENT_DYNAMIC_CLASS(wxRegion, wxGDIObject)
+IMPLEMENT_DYNAMIC_CLASS(wxRegionIterator,wxObject)
 
 // ----------------------------------------------------------------------------
 // wxRegion construction
@@ -429,7 +432,7 @@ class wxRIRefData: public wxObjectRefData
 public:
 
     wxRIRefData() : m_rects(0), m_numRects(0){}
-   ~wxRIRefData();
+   virtual ~wxRIRefData();
 
     wxRect *m_rects;
     size_t  m_numRects;