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_progress.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/c_fl_progress.cpp') diff --git a/src/c_fl_progress.cpp b/src/c_fl_progress.cpp index 9c18300..21a7a2d 100644 --- a/src/c_fl_progress.cpp +++ b/src/c_fl_progress.cpp @@ -50,45 +50,45 @@ PROGRESS new_fl_progress(int x, int y, int w, int h, char* label) { } void free_fl_progress(PROGRESS p) { - delete reinterpret_cast(p); + delete static_cast(p); } float fl_progress_get_minimum(PROGRESS p) { - return reinterpret_cast(p)->minimum(); + return static_cast(p)->minimum(); } void fl_progress_set_minimum(PROGRESS p, float t) { - reinterpret_cast(p)->minimum(t); + static_cast(p)->minimum(t); } float fl_progress_get_maximum(PROGRESS p) { - return reinterpret_cast(p)->maximum(); + return static_cast(p)->maximum(); } void fl_progress_set_maximum(PROGRESS p, float t) { - reinterpret_cast(p)->maximum(t); + static_cast(p)->maximum(t); } float fl_progress_get_value(PROGRESS p) { - return reinterpret_cast(p)->value(); + return static_cast(p)->value(); } void fl_progress_set_value(PROGRESS p, float t) { - reinterpret_cast(p)->value(t); + static_cast(p)->value(t); } void fl_progress_draw(PROGRESS p) { - reinterpret_cast(p)->Fl_Progress::draw(); + static_cast(p)->Fl_Progress::draw(); } int fl_progress_handle(PROGRESS p, int e) { - return reinterpret_cast(p)->Fl_Progress::handle(e); + return static_cast(p)->Fl_Progress::handle(e); } -- cgit