From b80278886518c75cb0552e21e21bc321112d2862 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 4 Feb 2002 01:34:18 +0000 Subject: [PATCH] changed CloneRefData() to take a const pointer git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13986 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/msw/region.h | 2 +- include/wx/object.h | 2 +- src/msw/region.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/wx/msw/region.h b/include/wx/msw/region.h index 50392147a7..72f8dfcd02 100644 --- a/include/wx/msw/region.h +++ b/include/wx/msw/region.h @@ -119,7 +119,7 @@ public: protected: virtual wxObjectRefData *CreateRefData() const; - virtual wxObjectRefData *CloneRefData(wxObjectRefData *data) const; + virtual wxObjectRefData *CloneRefData(const wxObjectRefData *data) const; friend class WXDLLEXPORT wxRegionIterator; diff --git a/include/wx/object.h b/include/wx/object.h index 8ea419a4be..599bcd5fc6 100644 --- a/include/wx/object.h +++ b/include/wx/object.h @@ -407,7 +407,7 @@ protected: virtual wxObjectRefData *CreateRefData() const; // create a new m_refData initialized with the given one - virtual wxObjectRefData *CloneRefData(wxObjectRefData *data) const; + virtual wxObjectRefData *CloneRefData(const wxObjectRefData *data) const; wxObjectRefData *m_refData; }; diff --git a/src/msw/region.cpp b/src/msw/region.cpp index 22340bfb5b..ec84dd0205 100644 --- a/src/msw/region.cpp +++ b/src/msw/region.cpp @@ -129,7 +129,7 @@ wxObjectRefData *wxRegion::CreateRefData() const return new wxRegionRefData; } -wxObjectRefData *wxRegion::CloneRefData(wxObjectRefData *data) const +wxObjectRefData *wxRegion::CloneRefData(const wxObjectRefData *data) const { return new wxRegionRefData(*(wxRegionRefData *)data); } -- 2.45.2