summaryrefslogtreecommitdiff
path: root/src/c_fl_progress.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_progress.cpp
parentba1719013e5bab82a2accb4aadfd8451c3ebc931 (diff)
Changed reinterpret_cast to static_cast where applicable
Diffstat (limited to 'src/c_fl_progress.cpp')
-rw-r--r--src/c_fl_progress.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/c_fl_progress.cpp b/src/c_fl_progress.cpp
index 9c18300..21a7a2d 100644
--- a/src/c_fl_progress.cpp
+++ b/src/c_fl_progress.cpp
@@ -50,45 +50,45 @@ PROGRESS new_fl_progress(int x, int y, int w, int h, char* label) {
}
void free_fl_progress(PROGRESS p) {
- delete reinterpret_cast<My_Progress*>(p);
+ delete static_cast<My_Progress*>(p);
}
float fl_progress_get_minimum(PROGRESS p) {
- return reinterpret_cast<Fl_Progress*>(p)->minimum();
+ return static_cast<Fl_Progress*>(p)->minimum();
}
void fl_progress_set_minimum(PROGRESS p, float t) {
- reinterpret_cast<Fl_Progress*>(p)->minimum(t);
+ static_cast<Fl_Progress*>(p)->minimum(t);
}
float fl_progress_get_maximum(PROGRESS p) {
- return reinterpret_cast<Fl_Progress*>(p)->maximum();
+ return static_cast<Fl_Progress*>(p)->maximum();
}
void fl_progress_set_maximum(PROGRESS p, float t) {
- reinterpret_cast<Fl_Progress*>(p)->maximum(t);
+ static_cast<Fl_Progress*>(p)->maximum(t);
}
float fl_progress_get_value(PROGRESS p) {
- return reinterpret_cast<Fl_Progress*>(p)->value();
+ return static_cast<Fl_Progress*>(p)->value();
}
void fl_progress_set_value(PROGRESS p, float t) {
- reinterpret_cast<Fl_Progress*>(p)->value(t);
+ static_cast<Fl_Progress*>(p)->value(t);
}
void fl_progress_draw(PROGRESS p) {
- reinterpret_cast<My_Progress*>(p)->Fl_Progress::draw();
+ static_cast<My_Progress*>(p)->Fl_Progress::draw();
}
int fl_progress_handle(PROGRESS p, int e) {
- return reinterpret_cast<My_Progress*>(p)->Fl_Progress::handle(e);
+ return static_cast<My_Progress*>(p)->Fl_Progress::handle(e);
}