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_bitmap.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'src/c_fl_bitmap.cpp') diff --git a/src/c_fl_bitmap.cpp b/src/c_fl_bitmap.cpp index 00cb665..01077b2 100644 --- a/src/c_fl_bitmap.cpp +++ b/src/c_fl_bitmap.cpp @@ -11,21 +11,21 @@ BITMAP new_fl_bitmap(void *data, int w, int h) { - Fl_Bitmap *b = new Fl_Bitmap(reinterpret_cast(data), w, h); + Fl_Bitmap *b = new Fl_Bitmap(static_cast(data), w, h); return b; } void free_fl_bitmap(BITMAP b) { - delete reinterpret_cast(b); + delete static_cast(b); } BITMAP fl_bitmap_copy(BITMAP b, int w, int h) { // virtual so disable dispatch - return reinterpret_cast(b)->Fl_Bitmap::copy(w, h); + return static_cast(b)->Fl_Bitmap::copy(w, h); } BITMAP fl_bitmap_copy2(BITMAP b) { - return reinterpret_cast(b)->copy(); + return static_cast(b)->copy(); } @@ -33,18 +33,19 @@ BITMAP fl_bitmap_copy2(BITMAP b) { void fl_bitmap_uncache(BITMAP b) { // virtual so disable dispatch - reinterpret_cast(b)->Fl_Bitmap::uncache(); + static_cast(b)->Fl_Bitmap::uncache(); } void fl_bitmap_draw2(BITMAP b, int x, int y) { - reinterpret_cast(b)->draw(x, y); + static_cast(b)->draw(x, y); } void fl_bitmap_draw(BITMAP b, int x, int y, int w, int h, int cx, int cy) { // virtual so disable dispatch - reinterpret_cast(b)->Fl_Bitmap::draw(x, y, w, h, cx, cy); + static_cast(b)->Fl_Bitmap::draw(x, y, w, h, cx, cy); } + -- cgit