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_surface_device.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/c_fl_surface_device.cpp') diff --git a/src/c_fl_surface_device.cpp b/src/c_fl_surface_device.cpp index 50088cf..9836a04 100644 --- a/src/c_fl_surface_device.cpp +++ b/src/c_fl_surface_device.cpp @@ -24,12 +24,12 @@ public: // Flattened C API SURFACEDEVICE new_fl_surface_device(void * g) { - My_Surface_Device *s = new My_Surface_Device(reinterpret_cast(g)); + My_Surface_Device *s = new My_Surface_Device(static_cast(g)); return s; } void free_fl_surface_device(SURFACEDEVICE s) { - delete reinterpret_cast(s); + delete static_cast(s); } @@ -37,7 +37,7 @@ void free_fl_surface_device(SURFACEDEVICE s) { void fl_surface_device_set_current(SURFACEDEVICE s) { // virtual so disable dispatch - reinterpret_cast(s)->Fl_Surface_Device::set_current(); + static_cast(s)->Fl_Surface_Device::set_current(); } SURFACEDEVICE fl_surface_device_get_surface(void) { @@ -48,11 +48,11 @@ SURFACEDEVICE fl_surface_device_get_surface(void) { void * fl_surface_device_get_driver(SURFACEDEVICE s) { - return reinterpret_cast(s)->driver(); + return static_cast(s)->driver(); } void fl_surface_device_set_driver(SURFACEDEVICE s, void * g) { - reinterpret_cast(s)->driver(reinterpret_cast(g)); + static_cast(s)->driver(static_cast(g)); } -- cgit