git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55584
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
void SetCurrentCategory( wxPGPropArg id )
{
wxPG_PROP_ARG_CALL_PROLOG()
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;
}
m_pState->m_currentCategory = pc;
}