Applied patch [ 583877 ] Clone events correction

Applied patch [ 583937 ] Fix in wxClassInfo


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16212 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2002-07-19 19:43:55 +00:00
parent 4b056ef54f
commit 1d2eddff4a
2 changed files with 128 additions and 17 deletions

View File

@@ -74,6 +74,27 @@ public:
, m_next(sm_first)
{ sm_first = this; }
~wxClassInfo()
{
if (sm_first == this)
{
sm_first = m_next;
}
else
{
wxClassInfo * info = sm_first;
while (info)
{
if (info->m_next == this)
{
info->m_next = m_next;
break;
}
info = info->m_next;
}
}
}
wxObject *CreateObject() { return m_objectConstructor ? (*m_objectConstructor)() : 0; }
const wxChar *GetClassName() const { return m_className; }