summaryrefslogtreecommitdiff
path: root/src/c_fl_double_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_double_window.cpp
parentba1719013e5bab82a2accb4aadfd8451c3ebc931 (diff)
Changed reinterpret_cast to static_cast where applicable
Diffstat (limited to 'src/c_fl_double_window.cpp')
-rw-r--r--src/c_fl_double_window.cpp18
1 files changed, 9 insertions, 9 deletions
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<My_Double_Window*>(d);
+ delete static_cast<My_Double_Window*>(d);
}
void fl_double_window_show(DOUBLEWINDOW d) {
- reinterpret_cast<Fl_Double_Window*>(d)->show();
+ static_cast<Fl_Double_Window*>(d)->show();
}
void fl_double_window_show2(DOUBLEWINDOW d, int c, void * v) {
- reinterpret_cast<Fl_Double_Window*>(d)->show(c, static_cast<char**>(v));
+ static_cast<Fl_Double_Window*>(d)->show(c, static_cast<char**>(v));
}
void fl_double_window_hide(DOUBLEWINDOW d) {
- reinterpret_cast<Fl_Double_Window*>(d)->hide();
+ static_cast<Fl_Double_Window*>(d)->hide();
}
void fl_double_window_flush(DOUBLEWINDOW d) {
- reinterpret_cast<Fl_Double_Window*>(d)->flush();
+ static_cast<Fl_Double_Window*>(d)->flush();
}
void fl_double_window_flush2(DOUBLEWINDOW d, int e) {
void (Fl_Double_Window::*myflush)(int) = &Friend_Double_Window::flush;
- (reinterpret_cast<Fl_Double_Window*>(d)->*myflush)(e);
+ (static_cast<Fl_Double_Window*>(d)->*myflush)(e);
}
void fl_double_window_resize(DOUBLEWINDOW d, int x, int y, int w, int h) {
- reinterpret_cast<Fl_Double_Window*>(d)->resize(x, y, w, h);
+ static_cast<Fl_Double_Window*>(d)->resize(x, y, w, h);
}
void fl_double_window_draw(DOUBLEWINDOW n) {
- reinterpret_cast<My_Double_Window*>(n)->Fl_Double_Window::draw();
+ static_cast<My_Double_Window*>(n)->Fl_Double_Window::draw();
}
int fl_double_window_handle(DOUBLEWINDOW n, int e) {
- return reinterpret_cast<My_Double_Window*>(n)->Fl_Double_Window::handle(e);
+ return static_cast<My_Double_Window*>(n)->Fl_Double_Window::handle(e);
}