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_single_window.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/c_fl_single_window.cpp') diff --git a/src/c_fl_single_window.cpp b/src/c_fl_single_window.cpp index 974a3c1..efafdc4 100644 --- a/src/c_fl_single_window.cpp +++ b/src/c_fl_single_window.cpp @@ -55,40 +55,40 @@ SINGLEWINDOW new_fl_single_window2(int x, int y, char* label) { } void free_fl_single_window(SINGLEWINDOW w) { - delete reinterpret_cast(w); + delete static_cast(w); } void fl_single_window_show(SINGLEWINDOW w) { - reinterpret_cast(w)->show(); + static_cast(w)->show(); } void fl_single_window_show2(SINGLEWINDOW w, int c, void * v) { - reinterpret_cast(w)->show(c, static_cast(v)); + static_cast(w)->show(c, static_cast(v)); } void fl_single_window_flush(SINGLEWINDOW w) { - reinterpret_cast(w)->flush(); + static_cast(w)->flush(); } void fl_single_window_make_current(SINGLEWINDOW w) { - reinterpret_cast(w)->Fl_Window::make_current(); + static_cast(w)->Fl_Window::make_current(); } void fl_single_window_draw(SINGLEWINDOW n) { - reinterpret_cast(n)->Fl_Single_Window::draw(); + static_cast(n)->Fl_Single_Window::draw(); } int fl_single_window_handle(SINGLEWINDOW n, int e) { - return reinterpret_cast(n)->Fl_Single_Window::handle(e); + return static_cast(n)->Fl_Single_Window::handle(e); } -- cgit