speed up for debug mode startup (doesn't matter much but as it doesn't cost anything to fix this...)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21154 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2003-06-14 16:36:08 +00:00
parent e776786754
commit 27db95f054

View File

@@ -188,13 +188,17 @@ 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 #ifdef __WXDEBUG__
wxASSERT_MSG( classInfo, // this must be fixed, other things will work wrongly later if you get this
wxString::Format if ( !classInfo )
( {
_T("base class '%s' is unknown to wxWindows RTTI"), wxFAIL_MSG( wxString::Format
name (
) ); _T("base class '%s' is unknown to wxWindows RTTI"),
name
) );
}
#endif // __WXDEBUG__
return classInfo; return classInfo;
} }