]> git.saurik.com Git - wxWidgets.git/commitdiff
fix compilation after wxRefCounter changes
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 13 Jun 2009 00:33:07 +0000 (00:33 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 13 Jun 2009 00:33:07 +0000 (00:33 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61037 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/object.cpp

index bfb703448707312aeead51082d69b2024a876a88..622aa2f2eb3d810612e3e66d5af408909186dab3 100644 (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;
     }