]> git.saurik.com Git - wxWidgets.git/blobdiff - src/dfb/window.cpp
second part of #10320: move wxApp event handling functions to wxEventLoopBase (in...
[wxWidgets.git] / src / dfb / window.cpp
index a4ad6529e68b82fb87b6c02a029c24cab4a25f68..548616b0fb7b449c2981cb8cb0207a20bbed2c6e 100644 (file)
@@ -88,8 +88,6 @@ wxWindowDFB::~wxWindowDFB()
 {
     SendDestroyEvent();
 
-    m_isBeingDeleted = true;
-
     if ( gs_mouseCapture == this )
         ReleaseMouse();
 
@@ -740,9 +738,7 @@ void wxWindowDFB::PaintOverlays(const wxRect& rect)
     for ( wxDfbOverlaysList::const_iterator i = m_overlays->begin();
           i != m_overlays->end(); ++i )
     {
-        // FIXME: the cast is necessary for STL build where the iterator
-        //        (incorrectly) returns void* and not wxOverlayImpl*
-        wxOverlayImpl *overlay = (wxOverlayImpl*) *i;
+        const wxOverlayImpl * const overlay = *i;
 
         wxRect orectOrig(overlay->GetRect());
         wxRect orect(orectOrig);