X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1c4293cb91327247ad69e6ec8d589bfaa299db28..258ccb95f58bd7a9f4d56db50b3f948b76911706:/include/wx/propgrid/propgrid.h?ds=sidebyside diff --git a/include/wx/propgrid/propgrid.h b/include/wx/propgrid/propgrid.h index 2666cee1b4..4d03285a16 100644 --- a/include/wx/propgrid/propgrid.h +++ b/include/wx/propgrid/propgrid.h @@ -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; } @@ -1634,9 +1632,6 @@ protected: // background colour for empty space below the grid wxColour m_colEmptySpace; - // temp property array used in DoDrawItems - wxArrayPtrVoid m_visPropArray; - // NB: These *cannot* be moved to globals. // Array of background colour brushes.