summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Ercolano <erco@seriss.com>2013-04-12 18:40:00 +0000
committerGreg Ercolano <erco@seriss.com>2013-04-12 18:40:00 +0000
commit5fda885c0306561ab53266e16d87b3c4e164572c (patch)
tree8eeb328c35b4ee160f9cc12a7aa4fccc31a0293a
parentf04ff44f8c24a8ab6c774c811ee7a707ecca3552 (diff)
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
-rw-r--r--src/Fl_Window.cxx2
1 files changed, 1 insertions, 1 deletions
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<Fl_Widget*>(w)->as_window();
}
/** Gets the x position of the window on the screen */