added asserts to Clone/CreateRefData()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13980 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2002-02-03 12:30:40 +00:00
parent 56c3554ccc
commit d18700787f

View File

@@ -276,11 +276,17 @@ void wxObject::AllocExclusive()
wxObjectRefData *wxObject::CreateRefData() const
{
// if you use AllocExclusive() you must override this method
wxFAIL_MSG( _T("CreateRefData() must be overridden if called!") );
return NULL;
}
wxObjectRefData *wxObject::CloneRefData(wxObjectRefData * WXUNUSED(data)) const
{
// if you use AllocExclusive() you must override this method
wxFAIL_MSG( _T("CloneRefData() must be overridden if called!") );
return NULL;
}