diff options
author | Jedidiah Barber <contact@jedbarber.id.au> | 2025-01-16 14:21:05 +1300 |
---|---|---|
committer | Jedidiah Barber <contact@jedbarber.id.au> | 2025-01-16 14:21:05 +1300 |
commit | dbf6f4db24aee7315b2782a87e127367887e2036 (patch) | |
tree | 91f5af52dbdf6be9e1f5026bcf354a6455dd411d /src/c_fl_pixmap.cpp | |
parent | ba1719013e5bab82a2accb4aadfd8451c3ebc931 (diff) |
Changed reinterpret_cast to static_cast where applicable
Diffstat (limited to 'src/c_fl_pixmap.cpp')
-rw-r--r-- | src/c_fl_pixmap.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
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<Fl_Pixmap*>(b); + delete static_cast<Fl_Pixmap*>(b); } PIXMAP fl_pixmap_copy(PIXMAP b, int w, int h) { // virtual so disable dispatch - return reinterpret_cast<Fl_Pixmap*>(b)->Fl_Pixmap::copy(w, h); + return static_cast<Fl_Pixmap*>(b)->Fl_Pixmap::copy(w, h); } PIXMAP fl_pixmap_copy2(PIXMAP b) { - return reinterpret_cast<Fl_Pixmap*>(b)->copy(); + return static_cast<Fl_Pixmap*>(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<Fl_Pixmap*>(p)->Fl_Pixmap::color_average(c, b); + static_cast<Fl_Pixmap*>(p)->Fl_Pixmap::color_average(c, b); } void fl_pixmap_desaturate(PIXMAP p) { // virtual so disable dispatch - reinterpret_cast<Fl_Pixmap*>(p)->Fl_Pixmap::desaturate(); + static_cast<Fl_Pixmap*>(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<Fl_Pixmap*>(p)->Fl_Pixmap::uncache(); + static_cast<Fl_Pixmap*>(p)->Fl_Pixmap::uncache(); } void fl_pixmap_draw2(PIXMAP b, int x, int y) { - reinterpret_cast<Fl_Pixmap*>(b)->draw(x, y); + static_cast<Fl_Pixmap*>(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<Fl_Pixmap*>(b)->Fl_Pixmap::draw(x, y, w, h, cx, cy); + static_cast<Fl_Pixmap*>(b)->Fl_Pixmap::draw(x, y, w, h, cx, cy); } |