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:
@@ -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;
|
||||||
|
|
||||||
|
@@ -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);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user