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_value_slider.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/c_fl_value_slider.cpp') diff --git a/src/c_fl_value_slider.cpp b/src/c_fl_value_slider.cpp index b79d7f5..7d6d59b 100644 --- a/src/c_fl_value_slider.cpp +++ b/src/c_fl_value_slider.cpp @@ -50,45 +50,45 @@ VALUESLIDER new_fl_value_slider(int x, int y, int w, int h, char* label) { } void free_fl_value_slider(VALUESLIDER s) { - delete reinterpret_cast(s); + delete static_cast(s); } unsigned int fl_value_slider_get_textcolor(VALUESLIDER s) { - return reinterpret_cast(s)->textcolor(); + return static_cast(s)->textcolor(); } void fl_value_slider_set_textcolor(VALUESLIDER s, unsigned int t) { - reinterpret_cast(s)->textcolor(t); + static_cast(s)->textcolor(t); } int fl_value_slider_get_textfont(VALUESLIDER s) { - return reinterpret_cast(s)->textfont(); + return static_cast(s)->textfont(); } void fl_value_slider_set_textfont(VALUESLIDER s, int t) { - reinterpret_cast(s)->textfont(t); + static_cast(s)->textfont(t); } int fl_value_slider_get_textsize(VALUESLIDER s) { - return reinterpret_cast(s)->textsize(); + return static_cast(s)->textsize(); } void fl_value_slider_set_textsize(VALUESLIDER s, int t) { - reinterpret_cast(s)->textsize(t); + static_cast(s)->textsize(t); } void fl_value_slider_draw(VALUESLIDER s) { - reinterpret_cast(s)->Fl_Value_Slider::draw(); + static_cast(s)->Fl_Value_Slider::draw(); } int fl_value_slider_handle(VALUESLIDER s, int e) { - return reinterpret_cast(s)->Fl_Value_Slider::handle(e); + return static_cast(s)->Fl_Value_Slider::handle(e); } -- cgit