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_scroll.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/c_fl_scroll.cpp') diff --git a/src/c_fl_scroll.cpp b/src/c_fl_scroll.cpp index b3d2c14..59bb8c2 100644 --- a/src/c_fl_scroll.cpp +++ b/src/c_fl_scroll.cpp @@ -50,7 +50,7 @@ SCROLL new_fl_scroll(int x, int y, int w, int h, char* label) { } void free_fl_scroll(SCROLL s) { - delete reinterpret_cast(s); + delete static_cast(s); } @@ -68,41 +68,41 @@ void * fl_scroll_scrollbar(SCROLL s) { void fl_scroll_to(SCROLL s, int x, int y) { - reinterpret_cast(s)->scroll_to(x, y); + static_cast(s)->scroll_to(x, y); } void fl_scroll_set_type(SCROLL s, int t) { - reinterpret_cast(s)->type(t); + static_cast(s)->type(t); } int fl_scroll_get_size(SCROLL s) { - return reinterpret_cast(s)->scrollbar_size(); + return static_cast(s)->scrollbar_size(); } void fl_scroll_set_size(SCROLL s, int t) { - reinterpret_cast(s)->scrollbar_size(t); + static_cast(s)->scrollbar_size(t); } int fl_scroll_xposition(SCROLL s) { - return reinterpret_cast(s)->xposition(); + return static_cast(s)->xposition(); } int fl_scroll_yposition(SCROLL s) { - return reinterpret_cast(s)->yposition(); + return static_cast(s)->yposition(); } void fl_scroll_draw(SCROLL s) { - reinterpret_cast(s)->Fl_Scroll::draw(); + static_cast(s)->Fl_Scroll::draw(); } int fl_scroll_handle(SCROLL s, int e) { - return reinterpret_cast(s)->Fl_Scroll::handle(e); + return static_cast(s)->Fl_Scroll::handle(e); } -- cgit