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:
parent
f04ff44f8c
commit
5fda885c03
@ -119,7 +119,7 @@ Fl_Window* Fl_Widget::top_window_offset(int& xoff, int& yoff) const {
|
||||
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 */
|
||||
|
Loading…
Reference in New Issue
Block a user