From 2026b433b9929e64ffbf3d0cef0a950728886360 Mon Sep 17 00:00:00 2001 From: Francesco Montorsi Date: Mon, 23 Mar 2009 11:01:33 +0000 Subject: [PATCH] this one should really work git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59762 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- tests/events/clone.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/events/clone.cpp b/tests/events/clone.cpp index b552422845..4b8298f437 100644 --- a/tests/events/clone.cpp +++ b/tests/events/clone.cpp @@ -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() ); -- 2.45.2