diff options
Diffstat (limited to 'src/c_fl_choice.cpp')
-rw-r--r-- | src/c_fl_choice.cpp | 12 |
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); } |