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_scrollbar.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/c_fl_scrollbar.cpp') diff --git a/src/c_fl_scrollbar.cpp b/src/c_fl_scrollbar.cpp index ae20a25..4208744 100644 --- a/src/c_fl_scrollbar.cpp +++ b/src/c_fl_scrollbar.cpp @@ -65,41 +65,41 @@ SCROLLBAR new_fl_scrollbar(int x, int y, int w, int h, char* label) { } void free_fl_scrollbar(SCROLLBAR s) { - delete reinterpret_cast(s); + delete static_cast(s); } int fl_scrollbar_get_linesize(SCROLLBAR s) { - return reinterpret_cast(s)->linesize(); + return static_cast(s)->linesize(); } void fl_scrollbar_set_linesize(SCROLLBAR s, int t) { - reinterpret_cast(s)->linesize(t); + static_cast(s)->linesize(t); } int fl_scrollbar_get_value(SCROLLBAR s) { - return reinterpret_cast(s)->value(); + return static_cast(s)->value(); } void fl_scrollbar_set_value(SCROLLBAR s, int t) { - reinterpret_cast(s)->value(t); + static_cast(s)->value(t); } void fl_scrollbar_set_value2(SCROLLBAR s, int p, int w, int f, int t) { - reinterpret_cast(s)->value(p,w,f,t); + static_cast(s)->value(p,w,f,t); } void fl_scrollbar_draw(SCROLLBAR s) { - reinterpret_cast(s)->Fl_Scrollbar::draw(); + static_cast(s)->Fl_Scrollbar::draw(); } int fl_scrollbar_handle(SCROLLBAR s, int e) { - return reinterpret_cast(s)->Fl_Scrollbar::handle(e); + return static_cast(s)->Fl_Scrollbar::handle(e); } -- cgit