this one should really work

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59762 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Francesco Montorsi 2009-03-23 11:01:33 +00:00
parent 36f062d3da
commit 2026b433b9

View File

@ -55,14 +55,16 @@ void EventCloneTestCase::CheckAll()
const wxClassInfo *ci = wxClassInfo::GetFirst();
for (; ci; ci = ci->GetNext())
{
wxString cn = wxString(ci->GetClassName());
// is this class derived from wxEvent?
if ( !ci->IsKindOf(CLASSINFO(wxEvent)) ||
wxString(ci->GetClassName()) == "wxEvent" )
cn == "wxEvent" )
continue;
const std::string
msg = std::string("Event class \"") +
std::string(ci->GetClassName()) + "\"";
std::string(cn.c_str()) + "\"";
CPPUNIT_ASSERT_MESSAGE( msg, ci->IsDynamic() );