Warning fixes for VC5 (Igor Korot)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37526 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -310,7 +310,7 @@ void wxObject::UnRef()
|
||||
{
|
||||
wxASSERT_MSG( m_refData->m_count > 0, _T("invalid ref data count") );
|
||||
|
||||
if ( !--m_refData->m_count )
|
||||
if ( --m_refData->m_count == 0 )
|
||||
delete m_refData;
|
||||
m_refData = NULL;
|
||||
}
|
||||
|
Reference in New Issue
Block a user