From 7e8a20edc8a023787dc77d770c0a7409a7641c96 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 1 Jun 2012 11:01:12 +0000 Subject: [PATCH] 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 --- src/propgrid/editors.cpp | 3 --- 1 file changed, 3 deletions(-) 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; -- 2.47.2