From a9bf8315f626419bc5ed8616475df446e3608c23 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 4 Feb 2002 21:52:03 +0000 Subject: [PATCH] no changes, just the file I forgot to commit... git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14004 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/object.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/common/object.cpp b/src/common/object.cpp index 01047a1f73..7bf7dbdc11 100644 --- a/src/common/object.cpp +++ b/src/common/object.cpp @@ -266,7 +266,7 @@ void wxObject::AllocExclusive() else if ( m_refData->GetRefCount() > 1 ) { // note that ref is not going to be destroyed in this case - wxObjectRefData* ref = m_refData; + const wxObjectRefData* ref = m_refData; UnRef(); // ... so we can still access it @@ -286,7 +286,8 @@ wxObjectRefData *wxObject::CreateRefData() const return NULL; } -wxObjectRefData *wxObject::CloneRefData(const wxObjectRefData * WXUNUSED(data)) const +wxObjectRefData * +wxObject::CloneRefData(const wxObjectRefData * WXUNUSED(data)) const { // if you use AllocExclusive() you must override this method wxFAIL_MSG( _T("CloneRefData() must be overridden if called!") ); -- 2.45.2