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_double_window.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/c_fl_double_window.cpp') diff --git a/src/c_fl_double_window.cpp b/src/c_fl_double_window.cpp index 93c3f49..67db73b 100644 --- a/src/c_fl_double_window.cpp +++ b/src/c_fl_double_window.cpp @@ -66,49 +66,49 @@ DOUBLEWINDOW new_fl_double_window2(int w, int h, char* label) { } void free_fl_double_window(DOUBLEWINDOW d) { - delete reinterpret_cast(d); + delete static_cast(d); } void fl_double_window_show(DOUBLEWINDOW d) { - reinterpret_cast(d)->show(); + static_cast(d)->show(); } void fl_double_window_show2(DOUBLEWINDOW d, int c, void * v) { - reinterpret_cast(d)->show(c, static_cast(v)); + static_cast(d)->show(c, static_cast(v)); } void fl_double_window_hide(DOUBLEWINDOW d) { - reinterpret_cast(d)->hide(); + static_cast(d)->hide(); } void fl_double_window_flush(DOUBLEWINDOW d) { - reinterpret_cast(d)->flush(); + static_cast(d)->flush(); } void fl_double_window_flush2(DOUBLEWINDOW d, int e) { void (Fl_Double_Window::*myflush)(int) = &Friend_Double_Window::flush; - (reinterpret_cast(d)->*myflush)(e); + (static_cast(d)->*myflush)(e); } void fl_double_window_resize(DOUBLEWINDOW d, int x, int y, int w, int h) { - reinterpret_cast(d)->resize(x, y, w, h); + static_cast(d)->resize(x, y, w, h); } void fl_double_window_draw(DOUBLEWINDOW n) { - reinterpret_cast(n)->Fl_Double_Window::draw(); + static_cast(n)->Fl_Double_Window::draw(); } int fl_double_window_handle(DOUBLEWINDOW n, int e) { - return reinterpret_cast(n)->Fl_Double_Window::handle(e); + return static_cast(n)->Fl_Double_Window::handle(e); } -- cgit