Cleaned up wxPropertyGrid::SetCurrentCategory()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55584 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Jaakko Salli 2008-09-13 19:43:44 +00:00
parent 18b5bcb067
commit 30595b81f2

View File

@ -967,10 +967,8 @@ public:
void SetCurrentCategory( wxPGPropArg id )
{
wxPG_PROP_ARG_CALL_PROLOG()
wxPropertyCategory* pc = (wxPropertyCategory*)p;
#ifdef __WXDEBUG__
if ( pc ) wxASSERT( pc->IsCategory() );
#endif
wxPropertyCategory* pc = wxDynamicCast(p, wxPropertyCategory);
wxASSERT(pc);
m_pState->m_currentCategory = pc;
}