]> git.saurik.com Git - wxWidgets.git/commitdiff
changed CloneRefData() to take a const pointer
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 4 Feb 2002 01:34:18 +0000 (01:34 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 4 Feb 2002 01:34:18 +0000 (01:34 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13986 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/msw/region.h
include/wx/object.h
src/msw/region.cpp

index 50392147a798ebe481bc7fa1a48b9ae783bcbc6c..72f8dfcd020123d0d5e3bf73c5ff360d709e237e 100644 (file)
@@ -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;
 
index 8ea419a4be1c59bacb69009101ec879433c417d1..599bcd5fc6e5f211d036cfe2be5da98a79e47cff 100644 (file)
@@ -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;
 };
index 22340bfb5b545415c6ab8053c51f1680223547f7..ec84dd0205736ca03ebbc3742d4957689b8c1706 100644 (file)
@@ -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);
 }