Skip to content

Commit

Permalink
Switched to const_cast<> for calling as_window().
Browse files Browse the repository at this point in the history
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9876 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
  • Loading branch information
erco77 committed Apr 12, 2013
1 parent f04ff44 commit 5fda885
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Fl_Window.cxx
Expand Up @@ -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 */
Expand Down

0 comments on commit 5fda885

Please sign in to comment.