summaryrefslogtreecommitdiff
path: root/src/c_fl_choice.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_choice.cpp
parentba1719013e5bab82a2accb4aadfd8451c3ebc931 (diff)
Changed reinterpret_cast to static_cast where applicable
Diffstat (limited to 'src/c_fl_choice.cpp')
-rw-r--r--src/c_fl_choice.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/c_fl_choice.cpp b/src/c_fl_choice.cpp
index 0b7c65c..4b03532 100644
--- a/src/c_fl_choice.cpp
+++ b/src/c_fl_choice.cpp
@@ -50,33 +50,33 @@ CHOICE new_fl_choice(int x, int y, int w, int h, char* label) {
}
void free_fl_choice(CHOICE b) {
- delete reinterpret_cast<My_Choice*>(b);
+ delete static_cast<My_Choice*>(b);
}
int fl_choice_value(CHOICE c) {
- return reinterpret_cast<Fl_Choice*>(c)->value();
+ return static_cast<Fl_Choice*>(c)->value();
}
int fl_choice_set_value(CHOICE c, void * i) {
- return reinterpret_cast<Fl_Choice*>(c)->value(reinterpret_cast<Fl_Menu_Item*>(i));
+ return static_cast<Fl_Choice*>(c)->value(static_cast<Fl_Menu_Item*>(i));
}
int fl_choice_set_value2(CHOICE c, int p) {
- return reinterpret_cast<Fl_Choice*>(c)->value(p);
+ return static_cast<Fl_Choice*>(c)->value(p);
}
void fl_choice_draw(CHOICE n) {
- reinterpret_cast<My_Choice*>(n)->Fl_Choice::draw();
+ static_cast<My_Choice*>(n)->Fl_Choice::draw();
}
int fl_choice_handle(CHOICE n, int e) {
- return reinterpret_cast<My_Choice*>(n)->Fl_Choice::handle(e);
+ return static_cast<My_Choice*>(n)->Fl_Choice::handle(e);
}