fix compilation after wxRefCounter changes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61037 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2009-06-13 00:33:07 +00:00
parent 0e497a9db6
commit deff6d72e5

View File

@ -350,8 +350,10 @@ wxClassInfo::const_iterator wxClassInfo::end_classinfo()
// wxObjectRefData
// ----------------------------------------------------------------------------
void wxObjectRefData::DecRef()
void wxRefCounter::DecRef()
{
wxASSERT_MSG( m_count > 0, "invalid ref data count" );
if ( --m_count == 0 )
delete this;
}
@ -386,8 +388,6 @@ void wxObject::UnRef()
{
if ( m_refData )
{
wxASSERT_MSG( m_refData->m_count > 0, _T("invalid ref data count") );
m_refData->DecRef();
m_refData = NULL;
}