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_tiled_image.cpp | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'src/c_fl_tiled_image.cpp') diff --git a/src/c_fl_tiled_image.cpp b/src/c_fl_tiled_image.cpp index 7cae644..0fbea0f 100644 --- a/src/c_fl_tiled_image.cpp +++ b/src/c_fl_tiled_image.cpp @@ -11,54 +11,54 @@ -TILED_IMAGE new_fl_tiled_image(void * i, int w, int h) { - Fl_Tiled_Image *t = new Fl_Tiled_Image(reinterpret_cast(i), w, h); +TILEDIMAGE new_fl_tiled_image(void * i, int w, int h) { + Fl_Tiled_Image *t = new Fl_Tiled_Image(static_cast(i), w, h); return t; } -void free_fl_tiled_image(TILED_IMAGE t) { - delete reinterpret_cast(t); +void free_fl_tiled_image(TILEDIMAGE t) { + delete static_cast(t); } -TILED_IMAGE fl_tiled_image_copy(TILED_IMAGE t, int w, int h) { +TILEDIMAGE fl_tiled_image_copy(TILEDIMAGE t, int w, int h) { // virtual so disable dispatch - return reinterpret_cast(t)->Fl_Tiled_Image::copy(w, h); + return static_cast(t)->Fl_Tiled_Image::copy(w, h); } -TILED_IMAGE fl_tiled_image_copy2(TILED_IMAGE t) { - return reinterpret_cast(t)->copy(); +TILEDIMAGE fl_tiled_image_copy2(TILEDIMAGE t) { + return static_cast(t)->copy(); } -void * fl_tiled_image_get_image(TILED_IMAGE t) { - return reinterpret_cast(t)->image(); +void * fl_tiled_image_get_image(TILEDIMAGE t) { + return static_cast(t)->image(); } -void fl_tiled_image_color_average(TILED_IMAGE t, int c, float b) { +void fl_tiled_image_color_average(TILEDIMAGE t, int c, float b) { // virtual so disable dispatch - reinterpret_cast(t)->Fl_Tiled_Image::color_average(c, b); + static_cast(t)->Fl_Tiled_Image::color_average(c, b); } -void fl_tiled_image_desaturate(TILED_IMAGE t) { +void fl_tiled_image_desaturate(TILEDIMAGE t) { // virtual so disable dispatch - reinterpret_cast(t)->Fl_Tiled_Image::desaturate(); + static_cast(t)->Fl_Tiled_Image::desaturate(); } -void fl_tiled_image_draw(TILED_IMAGE t, int x, int y) { - reinterpret_cast(t)->draw(x, y); +void fl_tiled_image_draw(TILEDIMAGE t, int x, int y) { + static_cast(t)->draw(x, y); } -void fl_tiled_image_draw2(TILED_IMAGE t, int x, int y, int w, int h, int cx, int cy) { +void fl_tiled_image_draw2(TILEDIMAGE t, int x, int y, int w, int h, int cx, int cy) { // virtual so disable dispatch - reinterpret_cast(t)->Fl_Tiled_Image::draw(x, y, w, h, cx, cy); + static_cast(t)->Fl_Tiled_Image::draw(x, y, w, h, cx, cy); } -- cgit