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_tabs.cpp | |
parent | ba1719013e5bab82a2accb4aadfd8451c3ebc931 (diff) |
Changed reinterpret_cast to static_cast where applicable
Diffstat (limited to 'src/c_fl_tabs.cpp')
-rw-r--r-- | src/c_fl_tabs.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/c_fl_tabs.cpp b/src/c_fl_tabs.cpp index a3e8581..df7327f 100644 --- a/src/c_fl_tabs.cpp +++ b/src/c_fl_tabs.cpp @@ -60,52 +60,52 @@ TABS new_fl_tabs(int x, int y, int w, int h, char* label) { } void free_fl_tabs(TABS t) { - delete reinterpret_cast<My_Tabs*>(t); + delete static_cast<My_Tabs*>(t); } void fl_tabs_client_area(TABS t, int * x, int * y, int * w, int * h, int i) { - reinterpret_cast<Fl_Tabs*>(t)->client_area(*x,*y,*w,*h,i); + static_cast<Fl_Tabs*>(t)->client_area(*x,*y,*w,*h,i); } void * fl_tabs_get_push(TABS t) { - return reinterpret_cast<Fl_Tabs*>(t)->push(); + return static_cast<Fl_Tabs*>(t)->push(); } void fl_tabs_set_push(TABS t, void * w) { - reinterpret_cast<Fl_Tabs*>(t)->push(reinterpret_cast<Fl_Widget*>(w)); + static_cast<Fl_Tabs*>(t)->push(static_cast<Fl_Widget*>(w)); } void * fl_tabs_get_value(TABS t) { - return reinterpret_cast<Fl_Tabs*>(t)->value(); + return static_cast<Fl_Tabs*>(t)->value(); } void fl_tabs_set_value(TABS t, void * w) { - reinterpret_cast<Fl_Tabs*>(t)->value(reinterpret_cast<Fl_Widget*>(w)); + static_cast<Fl_Tabs*>(t)->value(static_cast<Fl_Widget*>(w)); } void * fl_tabs_which(TABS t, int x, int y) { - return reinterpret_cast<Fl_Tabs*>(t)->which(x,y); + return static_cast<Fl_Tabs*>(t)->which(x,y); } void fl_tabs_draw(TABS t) { - reinterpret_cast<My_Tabs*>(t)->Fl_Tabs::draw(); + static_cast<My_Tabs*>(t)->Fl_Tabs::draw(); } void fl_tabs_redraw_tabs(TABS t) { - (reinterpret_cast<Fl_Tabs*>(t)->*(&Friend_Tabs::redraw_tabs))(); + (static_cast<Fl_Tabs*>(t)->*(&Friend_Tabs::redraw_tabs))(); } int fl_tabs_handle(TABS t, int e) { - return reinterpret_cast<My_Tabs*>(t)->Fl_Tabs::handle(e); + return static_cast<My_Tabs*>(t)->Fl_Tabs::handle(e); } |