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_dial.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/c_fl_dial.cpp') diff --git a/src/c_fl_dial.cpp b/src/c_fl_dial.cpp index 8e32820..34c6df8 100644 --- a/src/c_fl_dial.cpp +++ b/src/c_fl_dial.cpp @@ -62,51 +62,51 @@ DIAL new_fl_dial(int x, int y, int w, int h, char* label) { } void free_fl_dial(DIAL v) { - delete reinterpret_cast(v); + delete static_cast(v); } short fl_dial_get_angle1(DIAL v) { - return reinterpret_cast(v)->angle1(); + return static_cast(v)->angle1(); } void fl_dial_set_angle1(DIAL v, short t) { - reinterpret_cast(v)->angle1(t); + static_cast(v)->angle1(t); } short fl_dial_get_angle2(DIAL v) { - return reinterpret_cast(v)->angle2(); + return static_cast(v)->angle2(); } void fl_dial_set_angle2(DIAL v, short t) { - reinterpret_cast(v)->angle2(t); + static_cast(v)->angle2(t); } void fl_dial_set_angles(DIAL v, short a, short b) { - reinterpret_cast(v)->angles(a,b); + static_cast(v)->angles(a,b); } void fl_dial_draw(DIAL v) { - reinterpret_cast(v)->Fl_Dial::draw(); + static_cast(v)->Fl_Dial::draw(); } void fl_dial_draw2(DIAL v, int x, int y, int w, int h) { void (Fl_Dial::*mydraw)(int,int,int,int) = &Friend_Dial::draw; - (reinterpret_cast(v)->*mydraw)(x, y, w, h); + (static_cast(v)->*mydraw)(x, y, w, h); } int fl_dial_handle(DIAL v, int e) { - return reinterpret_cast(v)->Fl_Dial::handle(e); + return static_cast(v)->Fl_Dial::handle(e); } int fl_dial_handle2(DIAL v, int e, int x, int y, int w, int h) { int (Fl_Dial::*myhandle)(int,int,int,int,int) = &Friend_Dial::handle; - return (reinterpret_cast(v)->*myhandle)(e, x, y, w, h); + return (static_cast(v)->*myhandle)(e, x, y, w, h); } -- cgit