diff options
| author | Greg Ercolano <erco@seriss.com> | 2013-04-12 18:40:00 +0000 |
|---|---|---|
| committer | Greg Ercolano <erco@seriss.com> | 2013-04-12 18:40:00 +0000 |
| commit | 5fda885c0306561ab53266e16d87b3c4e164572c (patch) | |
| tree | 8eeb328c35b4ee160f9cc12a7aa4fccc31a0293a /src | |
| parent | f04ff44f8c24a8ab6c774c811ee7a707ecca3552 (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
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_Window.cxx | 2 |
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 */ |
