summaryrefslogtreecommitdiff
path: root/src/c_fl_menu_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_menu_window.cpp
parentba1719013e5bab82a2accb4aadfd8451c3ebc931 (diff)
Changed reinterpret_cast to static_cast where applicable
Diffstat (limited to 'src/c_fl_menu_window.cpp')
-rw-r--r--src/c_fl_menu_window.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/c_fl_menu_window.cpp b/src/c_fl_menu_window.cpp
index a01b0f7..cae1bf9 100644
--- a/src/c_fl_menu_window.cpp
+++ b/src/c_fl_menu_window.cpp
@@ -55,52 +55,52 @@ MENUWINDOW new_fl_menu_window2(int w, int h, char* label) {
}
void free_fl_menu_window(MENUWINDOW m) {
- delete reinterpret_cast<My_Menu_Window*>(m);
+ delete static_cast<My_Menu_Window*>(m);
}
void fl_menu_window_show(MENUWINDOW m) {
- reinterpret_cast<Fl_Menu_Window*>(m)->show();
+ static_cast<Fl_Menu_Window*>(m)->show();
}
void fl_menu_window_hide(MENUWINDOW m) {
- reinterpret_cast<Fl_Menu_Window*>(m)->hide();
+ static_cast<Fl_Menu_Window*>(m)->hide();
}
void fl_menu_window_flush(MENUWINDOW m) {
- reinterpret_cast<Fl_Menu_Window*>(m)->flush();
+ static_cast<Fl_Menu_Window*>(m)->flush();
}
void fl_menu_window_erase(MENUWINDOW m) {
- reinterpret_cast<Fl_Menu_Window*>(m)->erase();
+ static_cast<Fl_Menu_Window*>(m)->erase();
}
void fl_menu_window_set_overlay(MENUWINDOW m) {
- reinterpret_cast<Fl_Menu_Window*>(m)->set_overlay();
+ static_cast<Fl_Menu_Window*>(m)->set_overlay();
}
void fl_menu_window_clear_overlay(MENUWINDOW m) {
- reinterpret_cast<Fl_Menu_Window*>(m)->clear_overlay();
+ static_cast<Fl_Menu_Window*>(m)->clear_overlay();
}
unsigned int fl_menu_window_overlay(MENUWINDOW m) {
- return reinterpret_cast<Fl_Menu_Window*>(m)->overlay();
+ return static_cast<Fl_Menu_Window*>(m)->overlay();
}
void fl_menu_window_draw(MENUWINDOW n) {
- reinterpret_cast<My_Menu_Window*>(n)->Fl_Menu_Window::draw();
+ static_cast<My_Menu_Window*>(n)->Fl_Menu_Window::draw();
}
int fl_menu_window_handle(MENUWINDOW n, int e) {
- return reinterpret_cast<My_Menu_Window*>(n)->Fl_Menu_Window::handle(e);
+ return static_cast<My_Menu_Window*>(n)->Fl_Menu_Window::handle(e);
}