changed CloneRefData() to take a const pointer
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13986 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -119,7 +119,7 @@ public:
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual wxObjectRefData *CreateRefData() const;
|
virtual wxObjectRefData *CreateRefData() const;
|
||||||
virtual wxObjectRefData *CloneRefData(wxObjectRefData *data) const;
|
virtual wxObjectRefData *CloneRefData(const wxObjectRefData *data) const;
|
||||||
|
|
||||||
friend class WXDLLEXPORT wxRegionIterator;
|
friend class WXDLLEXPORT wxRegionIterator;
|
||||||
|
|
||||||
|
@@ -407,7 +407,7 @@ protected:
|
|||||||
virtual wxObjectRefData *CreateRefData() const;
|
virtual wxObjectRefData *CreateRefData() const;
|
||||||
|
|
||||||
// create a new m_refData initialized with the given one
|
// 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;
|
wxObjectRefData *m_refData;
|
||||||
};
|
};
|
||||||
|
@@ -129,7 +129,7 @@ wxObjectRefData *wxRegion::CreateRefData() const
|
|||||||
return new wxRegionRefData;
|
return new wxRegionRefData;
|
||||||
}
|
}
|
||||||
|
|
||||||
wxObjectRefData *wxRegion::CloneRefData(wxObjectRefData *data) const
|
wxObjectRefData *wxRegion::CloneRefData(const wxObjectRefData *data) const
|
||||||
{
|
{
|
||||||
return new wxRegionRefData(*(wxRegionRefData *)data);
|
return new wxRegionRefData(*(wxRegionRefData *)data);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user