summaryrefslogtreecommitdiff
path: root/src/c_fl_single_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_single_window.cpp
parentba1719013e5bab82a2accb4aadfd8451c3ebc931 (diff)
Changed reinterpret_cast to static_cast where applicable
Diffstat (limited to 'src/c_fl_single_window.cpp')
-rw-r--r--src/c_fl_single_window.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/c_fl_single_window.cpp b/src/c_fl_single_window.cpp
index 974a3c1..efafdc4 100644
--- a/src/c_fl_single_window.cpp
+++ b/src/c_fl_single_window.cpp
@@ -55,40 +55,40 @@ SINGLEWINDOW new_fl_single_window2(int x, int y, char* label) {
}
void free_fl_single_window(SINGLEWINDOW w) {
- delete reinterpret_cast<My_Single_Window*>(w);
+ delete static_cast<My_Single_Window*>(w);
}
void fl_single_window_show(SINGLEWINDOW w) {
- reinterpret_cast<Fl_Single_Window*>(w)->show();
+ static_cast<Fl_Single_Window*>(w)->show();
}
void fl_single_window_show2(SINGLEWINDOW w, int c, void * v) {
- reinterpret_cast<Fl_Single_Window*>(w)->show(c, static_cast<char**>(v));
+ static_cast<Fl_Single_Window*>(w)->show(c, static_cast<char**>(v));
}
void fl_single_window_flush(SINGLEWINDOW w) {
- reinterpret_cast<Fl_Single_Window*>(w)->flush();
+ static_cast<Fl_Single_Window*>(w)->flush();
}
void fl_single_window_make_current(SINGLEWINDOW w) {
- reinterpret_cast<Fl_Single_Window*>(w)->Fl_Window::make_current();
+ static_cast<Fl_Single_Window*>(w)->Fl_Window::make_current();
}
void fl_single_window_draw(SINGLEWINDOW n) {
- reinterpret_cast<My_Single_Window*>(n)->Fl_Single_Window::draw();
+ static_cast<My_Single_Window*>(n)->Fl_Single_Window::draw();
}
int fl_single_window_handle(SINGLEWINDOW n, int e) {
- return reinterpret_cast<My_Single_Window*>(n)->Fl_Single_Window::handle(e);
+ return static_cast<My_Single_Window*>(n)->Fl_Single_Window::handle(e);
}