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_event.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/c_fl_event.cpp') diff --git a/src/c_fl_event.cpp b/src/c_fl_event.cpp index c5d7651..cdb8185 100644 --- a/src/c_fl_event.cpp +++ b/src/c_fl_event.cpp @@ -21,7 +21,7 @@ void fl_event_set_event_dispatch(void * f) { } int fl_event_handle(int e, void * w) { - return Fl::handle_(e, reinterpret_cast(w)); + return Fl::handle_(e, static_cast(w)); } @@ -32,7 +32,7 @@ void * fl_event_get_grab() { } void fl_event_set_grab(void * w) { - Fl::grab(reinterpret_cast(w)); + Fl::grab(static_cast(w)); } void * fl_event_get_pushed() { @@ -40,7 +40,7 @@ void * fl_event_get_pushed() { } void fl_event_set_pushed(void * w) { - Fl::pushed(reinterpret_cast(w)); + Fl::pushed(static_cast(w)); } void * fl_event_get_belowmouse() { @@ -48,7 +48,7 @@ void * fl_event_get_belowmouse() { } void fl_event_set_belowmouse(void * w) { - Fl::belowmouse(reinterpret_cast(w)); + Fl::belowmouse(static_cast(w)); } void * fl_event_get_focus() { @@ -56,7 +56,7 @@ void * fl_event_get_focus() { } void fl_event_set_focus(void * w) { - Fl::focus(reinterpret_cast(w)); + Fl::focus(static_cast(w)); } -- cgit