From 5fda885c0306561ab53266e16d87b3c4e164572c Mon Sep 17 00:00:00 2001 From: Greg Ercolano Date: Fri, 12 Apr 2013 18:40:00 +0000 Subject: 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 --- src/Fl_Window.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Fl_Window.cxx b/src/Fl_Window.cxx index b9860976a..2bc536556 100644 --- a/src/Fl_Window.cxx +++ b/src/Fl_Window.cxx @@ -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(w)->as_window(); } /** Gets the x position of the window on the screen */ -- cgit v1.2.3