oops, Clone/CreateRefData() were not overridden in wxRegion as intended

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13981 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2002-02-03 12:31:32 +00:00
parent d18700787f
commit 025763083a
2 changed files with 4 additions and 7 deletions

View File

@@ -118,8 +118,8 @@ public:
WXHRGN GetHRGN() const; WXHRGN GetHRGN() const;
protected: protected:
virtual wxObjectRefData *CreateData() const; virtual wxObjectRefData *CreateRefData() const;
virtual wxObjectRefData *CloneData(wxObjectRefData *data) const; virtual wxObjectRefData *CloneRefData(wxObjectRefData *data) const;
friend class WXDLLEXPORT wxRegionIterator; friend class WXDLLEXPORT wxRegionIterator;

View File

@@ -119,20 +119,17 @@ wxRegion::wxRegion(size_t n, const wxPoint *points, int fillStyle)
#endif #endif
} }
/*
* Destroy the region.
*/
wxRegion::~wxRegion() wxRegion::~wxRegion()
{ {
// m_refData unrefed in ~wxObject // m_refData unrefed in ~wxObject
} }
wxObjectRefData *wxRegion::CreateData() const wxObjectRefData *wxRegion::CreateRefData() const
{ {
return new wxRegionRefData; return new wxRegionRefData;
} }
wxObjectRefData *wxRegion::CloneData(wxObjectRefData *data) const wxObjectRefData *wxRegion::CloneRefData(wxObjectRefData *data) const
{ {
return new wxRegionRefData(*(wxRegionRefData *)data); return new wxRegionRefData(*(wxRegionRefData *)data);
} }