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_button.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src/c_fl_button.cpp') diff --git a/src/c_fl_button.cpp b/src/c_fl_button.cpp index 1cff342..409b190 100644 --- a/src/c_fl_button.cpp +++ b/src/c_fl_button.cpp @@ -75,59 +75,59 @@ BUTTON new_fl_button(int x, int y, int w, int h, char* label) { } void free_fl_button(BUTTON b) { - delete reinterpret_cast(b); + delete static_cast(b); } int fl_button_get_state(BUTTON b) { - return reinterpret_cast(b)->Fl_Button::value(); + return static_cast(b)->Fl_Button::value(); } void fl_button_set_state(BUTTON b, int s) { - reinterpret_cast(b)->Fl_Button::value(s); + static_cast(b)->Fl_Button::value(s); } void fl_button_set_only(BUTTON b) { - reinterpret_cast(b)->Fl_Button::setonly(); + static_cast(b)->Fl_Button::setonly(); } int fl_button_get_down_box(BUTTON b) { - return reinterpret_cast(b)->Fl_Button::down_box(); + return static_cast(b)->Fl_Button::down_box(); } void fl_button_set_down_box(BUTTON b, int t) { - reinterpret_cast(b)->Fl_Button::down_box(static_cast(t)); + static_cast(b)->Fl_Button::down_box(static_cast(t)); } int fl_button_get_shortcut(BUTTON b) { - return reinterpret_cast(b)->Fl_Button::shortcut(); + return static_cast(b)->Fl_Button::shortcut(); } void fl_button_set_shortcut(BUTTON b, int k) { - reinterpret_cast(b)->Fl_Button::shortcut(k); + static_cast(b)->Fl_Button::shortcut(k); } void fl_button_draw(BUTTON b) { - reinterpret_cast(b)->Fl_Button::draw(); + static_cast(b)->Fl_Button::draw(); } int fl_button_handle(BUTTON b, int e) { - return reinterpret_cast(b)->Fl_Button::handle(e); + return static_cast(b)->Fl_Button::handle(e); } void fl_button_simulate_key_action(BUTTON b) { - (reinterpret_cast(b)->*(&Friend_Button::simulate_key_action))(); + (static_cast(b)->*(&Friend_Button::simulate_key_action))(); } -- cgit