more informational assert about the base class being unknown to wxRTTI system (patch 538103)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14899 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -161,7 +161,12 @@ inline wxClassInfo *wxClassInfo::GetBaseByName(const wxChar *name)
|
|||||||
wxClassInfo *classInfo = (wxClassInfo *)sm_classTable->Get(name);
|
wxClassInfo *classInfo = (wxClassInfo *)sm_classTable->Get(name);
|
||||||
|
|
||||||
// this must be fixed, other things risk work wrongly later if you get this
|
// this must be fixed, other things risk work wrongly later if you get this
|
||||||
wxASSERT_MSG( classInfo, _T("base class unknown to wxWindows RTTI") );
|
wxASSERT_MSG( classInfo,
|
||||||
|
wxString::Format
|
||||||
|
(
|
||||||
|
_T("base class '%s' is unknown to wxWindows RTTI"),
|
||||||
|
name
|
||||||
|
) );
|
||||||
|
|
||||||
return classInfo;
|
return classInfo;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user