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_wizard.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/c_fl_wizard.cpp') diff --git a/src/c_fl_wizard.cpp b/src/c_fl_wizard.cpp index d826ca6..e29995a 100644 --- a/src/c_fl_wizard.cpp +++ b/src/c_fl_wizard.cpp @@ -67,40 +67,40 @@ WIZARD new_fl_wizard(int x, int y, int w, int h, char* label) { } void free_fl_wizard(WIZARD w) { - delete reinterpret_cast(w); + delete static_cast(w); } void fl_wizard_next(WIZARD w) { - reinterpret_cast(w)->next(); + static_cast(w)->next(); } void fl_wizard_prev(WIZARD w) { - reinterpret_cast(w)->prev(); + static_cast(w)->prev(); } void * fl_wizard_get_visible(WIZARD w) { - return reinterpret_cast(w)->value(); + return static_cast(w)->value(); } void fl_wizard_set_visible(WIZARD w, void * i) { - reinterpret_cast(w)->value(reinterpret_cast(i)); + static_cast(w)->value(static_cast(i)); } void fl_wizard_draw(WIZARD w) { - reinterpret_cast(w)->real_draw(); + static_cast(w)->real_draw(); } int fl_wizard_handle(WIZARD w, int e) { - return reinterpret_cast(w)->Fl_Wizard::handle(e); + return static_cast(w)->Fl_Wizard::handle(e); } -- cgit