summaryrefslogtreecommitdiff
path: root/src/c_fl_cairo_window.cpp
diff options
context:
space:
mode:
authorJedidiah Barber <contact@jedbarber.id.au>2025-01-16 14:21:05 +1300
committerJedidiah Barber <contact@jedbarber.id.au>2025-01-16 14:21:05 +1300
commitdbf6f4db24aee7315b2782a87e127367887e2036 (patch)
tree91f5af52dbdf6be9e1f5026bcf354a6455dd411d /src/c_fl_cairo_window.cpp
parentba1719013e5bab82a2accb4aadfd8451c3ebc931 (diff)
Changed reinterpret_cast to static_cast where applicable
Diffstat (limited to 'src/c_fl_cairo_window.cpp')
-rw-r--r--src/c_fl_cairo_window.cpp12
1 files changed, 6 insertions, 6 deletions
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<My_Cairo_Window*>(w);
+ delete static_cast<My_Cairo_Window*>(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<Fl_Cairo_Window*>(w)->set_draw_cb(reinterpret_cast<cairo_draw_cb>(cb));
+ static_cast<Fl_Cairo_Window*>(w)->set_draw_cb(reinterpret_cast<cairo_draw_cb>(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<My_Cairo_Window*>(w)->Fl_Cairo_Window::draw();
+ static_cast<My_Cairo_Window*>(w)->Fl_Cairo_Window::draw();
#else
- reinterpret_cast<My_Cairo_Window*>(w)->Fl_Double_Window::draw();
+ static_cast<My_Cairo_Window*>(w)->Fl_Double_Window::draw();
#endif
}
int fl_cairo_window_handle(CAIROWINDOW w, int e) {
#ifdef FLTK_HAVE_CAIRO
- return reinterpret_cast<My_Cairo_Window*>(w)->Fl_Cairo_Window::handle(e);
+ return static_cast<My_Cairo_Window*>(w)->Fl_Cairo_Window::handle(e);
#else
- return reinterpret_cast<My_Cairo_Window*>(w)->Fl_Double_Window::handle(e);
+ return static_cast<My_Cairo_Window*>(w)->Fl_Double_Window::handle(e);
#endif
}