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_scroll.cpp | |
parent | ba1719013e5bab82a2accb4aadfd8451c3ebc931 (diff) |
Changed reinterpret_cast to static_cast where applicable
Diffstat (limited to 'src/c_fl_scroll.cpp')
-rw-r--r-- | src/c_fl_scroll.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
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<My_Scroll*>(s); + delete static_cast<My_Scroll*>(s); } @@ -68,41 +68,41 @@ void * fl_scroll_scrollbar(SCROLL s) { void fl_scroll_to(SCROLL s, int x, int y) { - reinterpret_cast<Fl_Scroll*>(s)->scroll_to(x, y); + static_cast<Fl_Scroll*>(s)->scroll_to(x, y); } void fl_scroll_set_type(SCROLL s, int t) { - reinterpret_cast<Fl_Scroll*>(s)->type(t); + static_cast<Fl_Scroll*>(s)->type(t); } int fl_scroll_get_size(SCROLL s) { - return reinterpret_cast<Fl_Scroll*>(s)->scrollbar_size(); + return static_cast<Fl_Scroll*>(s)->scrollbar_size(); } void fl_scroll_set_size(SCROLL s, int t) { - reinterpret_cast<Fl_Scroll*>(s)->scrollbar_size(t); + static_cast<Fl_Scroll*>(s)->scrollbar_size(t); } int fl_scroll_xposition(SCROLL s) { - return reinterpret_cast<Fl_Scroll*>(s)->xposition(); + return static_cast<Fl_Scroll*>(s)->xposition(); } int fl_scroll_yposition(SCROLL s) { - return reinterpret_cast<Fl_Scroll*>(s)->yposition(); + return static_cast<Fl_Scroll*>(s)->yposition(); } void fl_scroll_draw(SCROLL s) { - reinterpret_cast<My_Scroll*>(s)->Fl_Scroll::draw(); + static_cast<My_Scroll*>(s)->Fl_Scroll::draw(); } int fl_scroll_handle(SCROLL s, int e) { - return reinterpret_cast<My_Scroll*>(s)->Fl_Scroll::handle(e); + return static_cast<My_Scroll*>(s)->Fl_Scroll::handle(e); } |