summaryrefslogtreecommitdiff
path: root/src/c_fl_scrollbar.cpp
diff options
context:
space:
mode:
authorJedidiah Barber <contact@jedbarber.id.au>2025-01-16 14:21:05 +1300
committerJedidiah Barber <contact@jedbarber.id.au>2025-01-16 14:21:05 +1300
commitdbf6f4db24aee7315b2782a87e127367887e2036 (patch)
tree91f5af52dbdf6be9e1f5026bcf354a6455dd411d /src/c_fl_scrollbar.cpp
parentba1719013e5bab82a2accb4aadfd8451c3ebc931 (diff)
Changed reinterpret_cast to static_cast where applicable
Diffstat (limited to 'src/c_fl_scrollbar.cpp')
-rw-r--r--src/c_fl_scrollbar.cpp16
1 files changed, 8 insertions, 8 deletions
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<My_Scrollbar*>(s);
+ delete static_cast<My_Scrollbar*>(s);
}
int fl_scrollbar_get_linesize(SCROLLBAR s) {
- return reinterpret_cast<Fl_Scrollbar*>(s)->linesize();
+ return static_cast<Fl_Scrollbar*>(s)->linesize();
}
void fl_scrollbar_set_linesize(SCROLLBAR s, int t) {
- reinterpret_cast<Fl_Scrollbar*>(s)->linesize(t);
+ static_cast<Fl_Scrollbar*>(s)->linesize(t);
}
int fl_scrollbar_get_value(SCROLLBAR s) {
- return reinterpret_cast<Fl_Scrollbar*>(s)->value();
+ return static_cast<Fl_Scrollbar*>(s)->value();
}
void fl_scrollbar_set_value(SCROLLBAR s, int t) {
- reinterpret_cast<Fl_Scrollbar*>(s)->value(t);
+ static_cast<Fl_Scrollbar*>(s)->value(t);
}
void fl_scrollbar_set_value2(SCROLLBAR s, int p, int w, int f, int t) {
- reinterpret_cast<Fl_Scrollbar*>(s)->value(p,w,f,t);
+ static_cast<Fl_Scrollbar*>(s)->value(p,w,f,t);
}
void fl_scrollbar_draw(SCROLLBAR s) {
- reinterpret_cast<My_Scrollbar*>(s)->Fl_Scrollbar::draw();
+ static_cast<My_Scrollbar*>(s)->Fl_Scrollbar::draw();
}
int fl_scrollbar_handle(SCROLLBAR s, int e) {
- return reinterpret_cast<My_Scrollbar*>(s)->Fl_Scrollbar::handle(e);
+ return static_cast<My_Scrollbar*>(s)->Fl_Scrollbar::handle(e);
}