use class name instead of generic message in event related assert

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12480 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Gilles Depeyrot
2001-11-18 22:28:11 +00:00
parent ccf0e7f6d4
commit 01f944e67e

View File

@@ -711,8 +711,8 @@ bool wxEvtHandler::ProcessEvent(wxEvent& event)
{
#if wxUSE_GUI
// We have to use the actual window or processing events from wxWindowNative
// destructor won't work (we don't see the wxWindow class)
// We have to use the actual window or processing events from
// wxWindowNative destructor won't work (we don't see the wxWindow class)
#ifdef __WXDEBUG__
// check that our flag corresponds to reality
wxClassInfo* info = NULL;
@@ -735,7 +735,7 @@ bool wxEvtHandler::ProcessEvent(wxEvent& event)
#endif
wxASSERT_MSG( m_isWindow == IsKindOf(info),
_T("this should [not] be a window but it is [not]") );
wxString(GetClassInfo()->GetClassName()) + _T(" should [not] be a window but it is [not]") );
#endif
#endif // wxUSE_GUI