From dbf6f4db24aee7315b2782a87e127367887e2036 Mon Sep 17 00:00:00 2001 From: Jedidiah Barber Date: Thu, 16 Jan 2025 14:21:05 +1300 Subject: Changed reinterpret_cast to static_cast where applicable --- src/c_fl_overlay_window.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/c_fl_overlay_window.cpp') diff --git a/src/c_fl_overlay_window.cpp b/src/c_fl_overlay_window.cpp index c5610ef..0d434c3 100644 --- a/src/c_fl_overlay_window.cpp +++ b/src/c_fl_overlay_window.cpp @@ -65,52 +65,52 @@ OVERLAYWINDOW new_fl_overlay_window2(int w, int h, char *label) { } void free_fl_overlay_window(OVERLAYWINDOW w) { - delete reinterpret_cast(w); + delete static_cast(w); } int fl_overlay_window_can_do_overlay(OVERLAYWINDOW w) { - return reinterpret_cast(w)->can_do_overlay(); + return static_cast(w)->can_do_overlay(); } void fl_overlay_window_resize(OVERLAYWINDOW ow, int x, int y, int w, int h) { - reinterpret_cast(ow)->resize(x, y, w, h); + static_cast(ow)->resize(x, y, w, h); } void fl_overlay_window_show(OVERLAYWINDOW w) { - reinterpret_cast(w)->show(); + static_cast(w)->show(); } void fl_overlay_window_show2(OVERLAYWINDOW w, int c, void * v) { - reinterpret_cast(w)->show(c, static_cast(v)); + static_cast(w)->show(c, static_cast(v)); } void fl_overlay_window_hide(OVERLAYWINDOW w) { - reinterpret_cast(w)->hide(); + static_cast(w)->hide(); } void fl_overlay_window_flush(OVERLAYWINDOW w) { - reinterpret_cast(w)->flush(); + static_cast(w)->flush(); } void fl_overlay_window_redraw_overlay(OVERLAYWINDOW w) { - reinterpret_cast(w)->redraw_overlay(); + static_cast(w)->redraw_overlay(); } void fl_overlay_window_draw(OVERLAYWINDOW w) { - reinterpret_cast(w)->Fl_Overlay_Window::draw(); + static_cast(w)->Fl_Overlay_Window::draw(); } int fl_overlay_window_handle(OVERLAYWINDOW w, int e) { - return reinterpret_cast(w)->Fl_Overlay_Window::handle(e); + return static_cast(w)->Fl_Overlay_Window::handle(e); } -- cgit