diff options
author | Jedidiah Barber <contact@jedbarber.id.au> | 2025-01-16 14:21:05 +1300 |
---|---|---|
committer | Jedidiah Barber <contact@jedbarber.id.au> | 2025-01-16 14:21:05 +1300 |
commit | dbf6f4db24aee7315b2782a87e127367887e2036 (patch) | |
tree | 91f5af52dbdf6be9e1f5026bcf354a6455dd411d /src/c_fl_value_slider.cpp | |
parent | ba1719013e5bab82a2accb4aadfd8451c3ebc931 (diff) |
Changed reinterpret_cast to static_cast where applicable
Diffstat (limited to 'src/c_fl_value_slider.cpp')
-rw-r--r-- | src/c_fl_value_slider.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
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<My_Value_Slider*>(s); + delete static_cast<My_Value_Slider*>(s); } unsigned int fl_value_slider_get_textcolor(VALUESLIDER s) { - return reinterpret_cast<Fl_Value_Slider*>(s)->textcolor(); + return static_cast<Fl_Value_Slider*>(s)->textcolor(); } void fl_value_slider_set_textcolor(VALUESLIDER s, unsigned int t) { - reinterpret_cast<Fl_Value_Slider*>(s)->textcolor(t); + static_cast<Fl_Value_Slider*>(s)->textcolor(t); } int fl_value_slider_get_textfont(VALUESLIDER s) { - return reinterpret_cast<Fl_Value_Slider*>(s)->textfont(); + return static_cast<Fl_Value_Slider*>(s)->textfont(); } void fl_value_slider_set_textfont(VALUESLIDER s, int t) { - reinterpret_cast<Fl_Value_Slider*>(s)->textfont(t); + static_cast<Fl_Value_Slider*>(s)->textfont(t); } int fl_value_slider_get_textsize(VALUESLIDER s) { - return reinterpret_cast<Fl_Value_Slider*>(s)->textsize(); + return static_cast<Fl_Value_Slider*>(s)->textsize(); } void fl_value_slider_set_textsize(VALUESLIDER s, int t) { - reinterpret_cast<Fl_Value_Slider*>(s)->textsize(t); + static_cast<Fl_Value_Slider*>(s)->textsize(t); } void fl_value_slider_draw(VALUESLIDER s) { - reinterpret_cast<My_Value_Slider*>(s)->Fl_Value_Slider::draw(); + static_cast<My_Value_Slider*>(s)->Fl_Value_Slider::draw(); } int fl_value_slider_handle(VALUESLIDER s, int e) { - return reinterpret_cast<My_Value_Slider*>(s)->Fl_Value_Slider::handle(e); + return static_cast<My_Value_Slider*>(s)->Fl_Value_Slider::handle(e); } |