]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/vlbox.cpp
implement a runtime check to test if wxEvent::Clone is implemented correctly for...
[wxWidgets.git] / src / generic / vlbox.cpp
index 861dc0dc6f8989cdb686877fa45b68feba814a1a..0d7f8ef1990e7d376af60cd098b9a9de81df16f0 100644 (file)
@@ -427,11 +427,11 @@ void wxVListBox::OnDrawBackground(wxDC& dc, const wxRect& rect, size_t n) const
             flags |= wxCONTROL_SELECTED;
         if ( IsCurrent(n) )
             flags |= wxCONTROL_CURRENT;
-        if ( wxWindow::FindFocus() == wx_const_cast(wxVListBox*, this) )
+        if ( wxWindow::FindFocus() == const_cast<wxVListBox*>(this) )
             flags |= wxCONTROL_FOCUSED;
 
         wxRendererNative::Get().DrawItemSelectionRect(
-            wx_const_cast(wxVListBox *, this), dc, rect, flags);
+            const_cast<wxVListBox *>(this), dc, rect, flags);
     }
 }