Author: greg.ercolano
Date: 2013-04-12 11:40:00 -0700 (Fri, 12 Apr 2013)
New Revision: 9876
Log:
Switched to const_cast<> for calling as_window().



Modified:
   branches/branch-1.3/src/Fl_Window.cxx

Modified: branches/branch-1.3/src/Fl_Window.cxx
===================================================================
--- branches/branch-1.3/src/Fl_Window.cxx       2013-04-12 16:46:35 UTC (rev 
9875)
+++ branches/branch-1.3/src/Fl_Window.cxx       2013-04-12 18:40:00 UTC (rev 
9876)
@@ -119,7 +119,7 @@
     yoff += w->y();
     w = w->window();                   // walk up window hierarchy
   }
-  return ((Fl_Widget*)w)->as_window();
+  return const_cast<Fl_Widget*>(w)->as_window();
 }
 
 /** Gets the x position of the window on the screen */

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to