From dbf6f4db24aee7315b2782a87e127367887e2036 Mon Sep 17 00:00:00 2001 From: Jedidiah Barber Date: Thu, 16 Jan 2025 14:21:05 +1300 Subject: Changed reinterpret_cast to static_cast where applicable --- src/c_fl_tabs.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/c_fl_tabs.cpp') 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(t); + delete static_cast(t); } void fl_tabs_client_area(TABS t, int * x, int * y, int * w, int * h, int i) { - reinterpret_cast(t)->client_area(*x,*y,*w,*h,i); + static_cast(t)->client_area(*x,*y,*w,*h,i); } void * fl_tabs_get_push(TABS t) { - return reinterpret_cast(t)->push(); + return static_cast(t)->push(); } void fl_tabs_set_push(TABS t, void * w) { - reinterpret_cast(t)->push(reinterpret_cast(w)); + static_cast(t)->push(static_cast(w)); } void * fl_tabs_get_value(TABS t) { - return reinterpret_cast(t)->value(); + return static_cast(t)->value(); } void fl_tabs_set_value(TABS t, void * w) { - reinterpret_cast(t)->value(reinterpret_cast(w)); + static_cast(t)->value(static_cast(w)); } void * fl_tabs_which(TABS t, int x, int y) { - return reinterpret_cast(t)->which(x,y); + return static_cast(t)->which(x,y); } void fl_tabs_draw(TABS t) { - reinterpret_cast(t)->Fl_Tabs::draw(); + static_cast(t)->Fl_Tabs::draw(); } void fl_tabs_redraw_tabs(TABS t) { - (reinterpret_cast(t)->*(&Friend_Tabs::redraw_tabs))(); + (static_cast(t)->*(&Friend_Tabs::redraw_tabs))(); } int fl_tabs_handle(TABS t, int e) { - return reinterpret_cast(t)->Fl_Tabs::handle(e); + return static_cast(t)->Fl_Tabs::handle(e); } -- cgit