]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/region.cpp
added convenience accessors to wxHtmlTag and modified wxHTML code to use them; improv...
[wxWidgets.git] / src / gtk1 / region.cpp
index 2c4be00d6d7d34e2d1d7d0fc2967350d6f239b6a..e4d59dc1e804b844e5af0249a792fdad2ad67e7f 100644 (file)
@@ -87,6 +87,7 @@ wxRegionRefData::wxRegionRefData(const wxRegionRefData& refData)
     m_region = regCopy;
 #endif
 
+#if OLDCODE
     wxNode *node = refData.m_rects.First();
     while (node)
     {
@@ -94,6 +95,7 @@ wxRegionRefData::wxRegionRefData(const wxRegionRefData& refData)
         m_rects.Append( (wxObject*) new wxRect(*r) );
         node = node->Next();
     }
+#endif
 }
 
 wxRegionRefData::~wxRegionRefData()
@@ -117,8 +119,6 @@ wxRegionRefData::~wxRegionRefData()
 
 #define M_REGIONDATA ((wxRegionRefData *)m_refData)
 
-IMPLEMENT_DYNAMIC_CLASS(wxRegion,wxGDIObject);
-
 wxRegion::wxRegion()
 {
 }
@@ -351,6 +351,7 @@ bool wxRegion::Intersect( const wxRegion& region )
     }
 
     // we need to update the rect list as well
+#if OLDCODE
     wxList& list = *GetRectList();
     wxNode *node = list.First();
     while (node)
@@ -372,7 +373,7 @@ bool wxRegion::Intersect( const wxRegion& region )
 
         node = node->Next();
     }
-
+#endif
     return TRUE;
 }
 
@@ -566,8 +567,6 @@ wxList *wxRegion::GetRectList() const
 
 #if OLDCODE
 
-IMPLEMENT_DYNAMIC_CLASS(wxRegionIterator,wxObject);
-
 wxRegionIterator::wxRegionIterator()
 {
     Reset();
@@ -701,8 +700,6 @@ void wxRIRefData::CreateRects( const wxRegion& region )
   }
 }
 
-IMPLEMENT_DYNAMIC_CLASS(wxRegionIterator,wxObject);
-
 wxRegionIterator::wxRegionIterator()
 {
     m_refData = new wxRIRefData();