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_choice.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/c_fl_choice.cpp') diff --git a/src/c_fl_choice.cpp b/src/c_fl_choice.cpp index 0b7c65c..4b03532 100644 --- a/src/c_fl_choice.cpp +++ b/src/c_fl_choice.cpp @@ -50,33 +50,33 @@ CHOICE new_fl_choice(int x, int y, int w, int h, char* label) { } void free_fl_choice(CHOICE b) { - delete reinterpret_cast(b); + delete static_cast(b); } int fl_choice_value(CHOICE c) { - return reinterpret_cast(c)->value(); + return static_cast(c)->value(); } int fl_choice_set_value(CHOICE c, void * i) { - return reinterpret_cast(c)->value(reinterpret_cast(i)); + return static_cast(c)->value(static_cast(i)); } int fl_choice_set_value2(CHOICE c, int p) { - return reinterpret_cast(c)->value(p); + return static_cast(c)->value(p); } void fl_choice_draw(CHOICE n) { - reinterpret_cast(n)->Fl_Choice::draw(); + static_cast(n)->Fl_Choice::draw(); } int fl_choice_handle(CHOICE n, int e) { - return reinterpret_cast(n)->Fl_Choice::handle(e); + return static_cast(n)->Fl_Choice::handle(e); } -- cgit