From: Vadim Zeitlin Date: Sun, 3 Feb 2002 12:31:32 +0000 (+0000) Subject: oops, Clone/CreateRefData() were not overridden in wxRegion as intended X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/025763083a33cbab4e5de75657a6ca991c1e5149?ds=inline 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 --- diff --git a/include/wx/msw/region.h b/include/wx/msw/region.h index ae99e4a5d6..50392147a7 100644 --- a/include/wx/msw/region.h +++ b/include/wx/msw/region.h @@ -118,8 +118,8 @@ public: WXHRGN GetHRGN() const; protected: - virtual wxObjectRefData *CreateData() const; - virtual wxObjectRefData *CloneData(wxObjectRefData *data) const; + virtual wxObjectRefData *CreateRefData() const; + virtual wxObjectRefData *CloneRefData(wxObjectRefData *data) const; friend class WXDLLEXPORT wxRegionIterator; diff --git a/src/msw/region.cpp b/src/msw/region.cpp index d0336daaff..22340bfb5b 100644 --- a/src/msw/region.cpp +++ b/src/msw/region.cpp @@ -119,20 +119,17 @@ wxRegion::wxRegion(size_t n, const wxPoint *points, int fillStyle) #endif } -/* - * Destroy the region. - */ wxRegion::~wxRegion() { // m_refData unrefed in ~wxObject } -wxObjectRefData *wxRegion::CreateData() const +wxObjectRefData *wxRegion::CreateRefData() const { return new wxRegionRefData; } -wxObjectRefData *wxRegion::CloneData(wxObjectRefData *data) const +wxObjectRefData *wxRegion::CloneRefData(wxObjectRefData *data) const { return new wxRegionRefData(*(wxRegionRefData *)data); }