From 95a695cd540ee3a73121d13dd27ece01aee497ce Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 21 Jul 2008 17:05:14 +0000 Subject: [PATCH] compilation fix for wxDFB STL build (#9751) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@54750 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/dfb/window.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/dfb/window.cpp b/src/dfb/window.cpp index 809a899a0a..c64c742356 100644 --- a/src/dfb/window.cpp +++ b/src/dfb/window.cpp @@ -797,7 +797,10 @@ void wxWindowDFB::PaintOverlays(const wxRect& rect) for ( wxDfbOverlaysList::const_iterator i = m_overlays->begin(); i != m_overlays->end(); ++i ) { - wxOverlayImpl *overlay = *i; + // the cast is necessary in STL build because of bug in const_iterator + // operator*() return value + const wxOverlayImpl * const + overlay = wx_static_cast(const wxOverlayImpl *, *i); wxRect orectOrig(overlay->GetRect()); wxRect orect(orectOrig);