Check for NULL base class.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22979 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Mattia Barbon 2003-08-17 19:53:51 +00:00
parent 768dc88a34
commit 469349b5c8

View File

@ -83,8 +83,10 @@ public:
wxObject *CreateObject() { return m_objectConstructor ? (*m_objectConstructor)() : 0; } wxObject *CreateObject() { return m_objectConstructor ? (*m_objectConstructor)() : 0; }
const wxChar *GetClassName() const { return m_className; } const wxChar *GetClassName() const { return m_className; }
const wxChar *GetBaseClassName1() const { return m_baseInfo1->GetClassName(); } const wxChar *GetBaseClassName1() const
const wxChar *GetBaseClassName2() const { return m_baseInfo2->GetClassName(); } { return m_baseInfo1 ? m_baseInfo1->GetClassName() : NULL; }
const wxChar *GetBaseClassName2() const
{ return m_baseInfo2 ? m_baseInfo2->GetClassName() : NULL; }
const wxClassInfo *GetBaseClass1() const { return m_baseInfo1; } const wxClassInfo *GetBaseClass1() const { return m_baseInfo1; }
const wxClassInfo *GetBaseClass2() const { return m_baseInfo2; } const wxClassInfo *GetBaseClass2() const { return m_baseInfo2; }
int GetSize() const { return m_objectSize; } int GetSize() const { return m_objectSize; }