From: Vadim Zeitlin Date: Fri, 1 Jun 2012 11:01:12 +0000 (+0000) Subject: Remove unneeded dynamic cast in wxPropertyGrid. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/7e8a20edc8a023787dc77d770c0a7409a7641c96 Remove unneeded dynamic cast in wxPropertyGrid. It's completely useless to check that an object is of its own statically declared type as this is always true, simply don't do it. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71623 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/propgrid/editors.cpp b/src/propgrid/editors.cpp index 6c12bb79a0..beb3e805aa 100644 --- a/src/propgrid/editors.cpp +++ b/src/propgrid/editors.cpp @@ -732,9 +732,6 @@ void wxPropertyGrid::OnComboItemPaint( const wxPGComboBox* pCb, wxRect& rect, int flags ) { - // Sanity check - wxASSERT( IsKindOf(CLASSINFO(wxPropertyGrid)) ); - wxPGProperty* p = GetSelection(); wxString text;