X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/de3cfa6e8ca8957b737d027e00a7050dd5671262..2e334012b4babcf063fbe79540c4c154cd54ab2b:/src/gtk/region.cpp diff --git a/src/gtk/region.cpp b/src/gtk/region.cpp index c87e5a0504..a18c324df8 100644 --- a/src/gtk/region.cpp +++ b/src/gtk/region.cpp @@ -32,7 +32,7 @@ // wxRegionRefData: private class containing the information about the region // ---------------------------------------------------------------------------- -class wxRegionRefData : public wxObjectRefData +class wxRegionRefData : public wxGDIRefData { public: wxRegionRefData() @@ -41,7 +41,7 @@ public: } wxRegionRefData(const wxRegionRefData& refData) - : wxObjectRefData() + : wxGDIRefData() { m_region = gdk_region_copy(refData.m_region); } @@ -119,12 +119,12 @@ wxRegion::~wxRegion() // m_refData unrefed in ~wxObject } -wxObjectRefData *wxRegion::CreateRefData() const +wxGDIRefData *wxRegion::CreateGDIRefData() const { return new wxRegionRefData; } -wxObjectRefData *wxRegion::CloneRefData(const wxObjectRefData *data) const +wxGDIRefData *wxRegion::CloneGDIRefData(const wxGDIRefData *data) const { return new wxRegionRefData(*(wxRegionRefData *)data); } @@ -459,7 +459,7 @@ wxRect wxRegionIterator::GetRect() const wxRegionIterator& wxRegionIterator::operator=(const wxRegionIterator& ri) { wxDELETEA(m_rects); - + m_current = ri.m_current; m_numRects = ri.m_numRects; if ( m_numRects )