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_cairo_window.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/c_fl_cairo_window.cpp') diff --git a/src/c_fl_cairo_window.cpp b/src/c_fl_cairo_window.cpp index c1a815e..4bf75f0 100644 --- a/src/c_fl_cairo_window.cpp +++ b/src/c_fl_cairo_window.cpp @@ -61,7 +61,7 @@ CAIROWINDOW new_fl_cairo_window(int w, int h) { } void free_fl_cairo_window(CAIROWINDOW w) { - delete reinterpret_cast(w); + delete static_cast(w); } @@ -69,7 +69,7 @@ void free_fl_cairo_window(CAIROWINDOW w) { void fl_cairo_window_set_draw_cb(CAIROWINDOW w, void * cb) { #ifdef FLTK_HAVE_CAIRO - reinterpret_cast(w)->set_draw_cb(reinterpret_cast(cb)); + static_cast(w)->set_draw_cb(reinterpret_cast(cb)); #else (void)(w); (void)(cb); @@ -81,17 +81,17 @@ void fl_cairo_window_set_draw_cb(CAIROWINDOW w, void * cb) { void fl_cairo_window_draw(CAIROWINDOW w) { #ifdef FLTK_HAVE_CAIRO - reinterpret_cast(w)->Fl_Cairo_Window::draw(); + static_cast(w)->Fl_Cairo_Window::draw(); #else - reinterpret_cast(w)->Fl_Double_Window::draw(); + static_cast(w)->Fl_Double_Window::draw(); #endif } int fl_cairo_window_handle(CAIROWINDOW w, int e) { #ifdef FLTK_HAVE_CAIRO - return reinterpret_cast(w)->Fl_Cairo_Window::handle(e); + return static_cast(w)->Fl_Cairo_Window::handle(e); #else - return reinterpret_cast(w)->Fl_Double_Window::handle(e); + return static_cast(w)->Fl_Double_Window::handle(e); #endif } -- cgit