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_menu_window.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/c_fl_menu_window.cpp') diff --git a/src/c_fl_menu_window.cpp b/src/c_fl_menu_window.cpp index a01b0f7..cae1bf9 100644 --- a/src/c_fl_menu_window.cpp +++ b/src/c_fl_menu_window.cpp @@ -55,52 +55,52 @@ MENUWINDOW new_fl_menu_window2(int w, int h, char* label) { } void free_fl_menu_window(MENUWINDOW m) { - delete reinterpret_cast(m); + delete static_cast(m); } void fl_menu_window_show(MENUWINDOW m) { - reinterpret_cast(m)->show(); + static_cast(m)->show(); } void fl_menu_window_hide(MENUWINDOW m) { - reinterpret_cast(m)->hide(); + static_cast(m)->hide(); } void fl_menu_window_flush(MENUWINDOW m) { - reinterpret_cast(m)->flush(); + static_cast(m)->flush(); } void fl_menu_window_erase(MENUWINDOW m) { - reinterpret_cast(m)->erase(); + static_cast(m)->erase(); } void fl_menu_window_set_overlay(MENUWINDOW m) { - reinterpret_cast(m)->set_overlay(); + static_cast(m)->set_overlay(); } void fl_menu_window_clear_overlay(MENUWINDOW m) { - reinterpret_cast(m)->clear_overlay(); + static_cast(m)->clear_overlay(); } unsigned int fl_menu_window_overlay(MENUWINDOW m) { - return reinterpret_cast(m)->overlay(); + return static_cast(m)->overlay(); } void fl_menu_window_draw(MENUWINDOW n) { - reinterpret_cast(n)->Fl_Menu_Window::draw(); + static_cast(n)->Fl_Menu_Window::draw(); } int fl_menu_window_handle(MENUWINDOW n, int e) { - return reinterpret_cast(n)->Fl_Menu_Window::handle(e); + return static_cast(n)->Fl_Menu_Window::handle(e); } -- cgit