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_pixmap.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/c_fl_pixmap.cpp') diff --git a/src/c_fl_pixmap.cpp b/src/c_fl_pixmap.cpp index b880bac..6ebcb56 100644 --- a/src/c_fl_pixmap.cpp +++ b/src/c_fl_pixmap.cpp @@ -11,16 +11,16 @@ void free_fl_pixmap(PIXMAP b) { - delete reinterpret_cast(b); + delete static_cast(b); } PIXMAP fl_pixmap_copy(PIXMAP b, int w, int h) { // virtual so disable dispatch - return reinterpret_cast(b)->Fl_Pixmap::copy(w, h); + return static_cast(b)->Fl_Pixmap::copy(w, h); } PIXMAP fl_pixmap_copy2(PIXMAP b) { - return reinterpret_cast(b)->copy(); + return static_cast(b)->copy(); } @@ -28,12 +28,12 @@ PIXMAP fl_pixmap_copy2(PIXMAP b) { void fl_pixmap_color_average(PIXMAP p, int c, float b) { // virtual so disable dispatch - reinterpret_cast(p)->Fl_Pixmap::color_average(c, b); + static_cast(p)->Fl_Pixmap::color_average(c, b); } void fl_pixmap_desaturate(PIXMAP p) { // virtual so disable dispatch - reinterpret_cast(p)->Fl_Pixmap::desaturate(); + static_cast(p)->Fl_Pixmap::desaturate(); } @@ -41,18 +41,18 @@ void fl_pixmap_desaturate(PIXMAP p) { void fl_pixmap_uncache(PIXMAP p) { // virtual so disable dispatch - reinterpret_cast(p)->Fl_Pixmap::uncache(); + static_cast(p)->Fl_Pixmap::uncache(); } void fl_pixmap_draw2(PIXMAP b, int x, int y) { - reinterpret_cast(b)->draw(x, y); + static_cast(b)->draw(x, y); } void fl_pixmap_draw(PIXMAP b, int x, int y, int w, int h, int cx, int cy) { // virtual so disable dispatch - reinterpret_cast(b)->Fl_Pixmap::draw(x, y, w, h, cx, cy); + static_cast(b)->Fl_Pixmap::draw(x, y, w, h, cx, cy); } -- cgit