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_pack.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/c_fl_pack.cpp') diff --git a/src/c_fl_pack.cpp b/src/c_fl_pack.cpp index 2e83b3f..e7cace9 100644 --- a/src/c_fl_pack.cpp +++ b/src/c_fl_pack.cpp @@ -50,29 +50,29 @@ PACK new_fl_pack(int x, int y, int w, int h, char* label) { } void free_fl_pack(PACK p) { - delete reinterpret_cast(p); + delete static_cast(p); } int fl_pack_get_spacing(PACK p) { - return reinterpret_cast(p)->spacing(); + return static_cast(p)->spacing(); } void fl_pack_set_spacing(PACK p, int t) { - reinterpret_cast(p)->spacing(t); + static_cast(p)->spacing(t); } void fl_pack_draw(PACK n) { - reinterpret_cast(n)->Fl_Pack::draw(); + static_cast(n)->Fl_Pack::draw(); } int fl_pack_handle(PACK n, int e) { - return reinterpret_cast(n)->Fl_Pack::handle(e); + return static_cast(n)->Fl_Pack::handle(e); } -- cgit