Switched to const_cast<> for calling as_window().

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9876 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Greg Ercolano 2013-04-12 18:40:00 +00:00
parent f04ff44f8c
commit 5fda885c03

View File

@ -119,7 +119,7 @@ Fl_Window* Fl_Widget::top_window_offset(int& xoff, int& yoff) const {
yoff += w->y(); yoff += w->y();
w = w->window(); // walk up window hierarchy 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 */ /** Gets the x position of the window on the screen */