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_help_view.cpp | 62 +++++++++++++++++++++++++------------------------- 1 file changed, 31 insertions(+), 31 deletions(-) (limited to 'src/c_fl_help_view.cpp') diff --git a/src/c_fl_help_view.cpp b/src/c_fl_help_view.cpp index 6275052..aa2fd65 100644 --- a/src/c_fl_help_view.cpp +++ b/src/c_fl_help_view.cpp @@ -52,123 +52,123 @@ HELPVIEW new_fl_help_view(int x, int y, int w, int h, char * label) { } void free_fl_help_view(HELPVIEW v) { - delete reinterpret_cast(v); + delete static_cast(v); } void fl_help_view_clear_selection(HELPVIEW v) { - reinterpret_cast(v)->clear_selection(); + static_cast(v)->clear_selection(); } void fl_help_view_select_all(HELPVIEW v) { - reinterpret_cast(v)->select_all(); + static_cast(v)->select_all(); } int fl_help_view_find(HELPVIEW v, const char * s, int p) { - return reinterpret_cast(v)->find(s, p); + return static_cast(v)->find(s, p); } int fl_help_view_get_leftline(HELPVIEW v) { - return reinterpret_cast(v)->leftline(); + return static_cast(v)->leftline(); } void fl_help_view_set_leftline(HELPVIEW v, int t) { - reinterpret_cast(v)->leftline(t); + static_cast(v)->leftline(t); } int fl_help_view_get_topline(HELPVIEW v) { - return reinterpret_cast(v)->topline(); + return static_cast(v)->topline(); } void fl_help_view_set_topline(HELPVIEW v, int t) { - reinterpret_cast(v)->topline(t); + static_cast(v)->topline(t); } void fl_help_view_set_topline_target(HELPVIEW v, const char * t) { - reinterpret_cast(v)->topline(t); + static_cast(v)->topline(t); } const char * fl_help_view_directory(HELPVIEW v) { - return reinterpret_cast(v)->directory(); + return static_cast(v)->directory(); } const char * fl_help_view_filename(HELPVIEW v) { - return reinterpret_cast(v)->filename(); + return static_cast(v)->filename(); } int fl_help_view_load(HELPVIEW v, const char * f) { - return reinterpret_cast(v)->load(f); + return static_cast(v)->load(f); } const char * fl_help_view_title(HELPVIEW v) { - return reinterpret_cast(v)->title(); + return static_cast(v)->title(); } const char * fl_help_view_get_value(HELPVIEW v) { - return reinterpret_cast(v)->value(); + return static_cast(v)->value(); } void fl_help_view_set_value(HELPVIEW v, const char * t) { - reinterpret_cast(v)->value(t); + static_cast(v)->value(t); } void fl_help_view_link(HELPVIEW v, void * f) { - reinterpret_cast(v)->link(reinterpret_cast(f)); + static_cast(v)->link(reinterpret_cast(f)); } int fl_help_view_get_scrollbar_size(HELPVIEW v) { - return reinterpret_cast(v)->scrollbar_size(); + return static_cast(v)->scrollbar_size(); } void fl_help_view_set_scrollbar_size(HELPVIEW v, int s) { - reinterpret_cast(v)->scrollbar_size(s); + static_cast(v)->scrollbar_size(s); } int fl_help_view_get_size(HELPVIEW v) { - return reinterpret_cast(v)->size(); + return static_cast(v)->size(); } void fl_help_view_set_size(HELPVIEW v, int w, int h) { - reinterpret_cast(v)->size(w, h); + static_cast(v)->size(w, h); } void fl_help_view_resize(HELPVIEW v, int x, int y, int w, int h) { - reinterpret_cast(v)->resize(x, y, w, h); + static_cast(v)->resize(x, y, w, h); } unsigned int fl_help_view_get_textcolor(HELPVIEW v) { - return reinterpret_cast(v)->textcolor(); + return static_cast(v)->textcolor(); } void fl_help_view_set_textcolor(HELPVIEW v, unsigned int c) { - reinterpret_cast(v)->textcolor(c); + static_cast(v)->textcolor(c); } int fl_help_view_get_textfont(HELPVIEW v) { - return reinterpret_cast(v)->textfont(); + return static_cast(v)->textfont(); } void fl_help_view_set_textfont(HELPVIEW v, int f) { - reinterpret_cast(v)->textfont(f); + static_cast(v)->textfont(f); } int fl_help_view_get_textsize(HELPVIEW v) { - return reinterpret_cast(v)->textsize(); + return static_cast(v)->textsize(); } void fl_help_view_set_textsize(HELPVIEW v, int s) { - reinterpret_cast(v)->textsize(s); + static_cast(v)->textsize(s); } @@ -176,17 +176,17 @@ void fl_help_view_set_textsize(HELPVIEW v, int s) { void fl_help_view_draw(HELPVIEW v) { #if FL_ABI_VERSION >= 10303 - reinterpret_cast(v)->Fl_Help_View::draw(); + static_cast(v)->Fl_Help_View::draw(); #else - reinterpret_cast(v)->Fl_Group::draw(); + static_cast(v)->Fl_Group::draw(); #endif } int fl_help_view_handle(HELPVIEW v, int e) { #if FL_ABI_VERSION >= 10303 - return reinterpret_cast(v)->Fl_Help_View::handle(e); + return static_cast(v)->Fl_Help_View::handle(e); #else - return reinterpret_cast(v)->Fl_Group::handle(e); + return static_cast(v)->Fl_Group::handle(e); #endif } -- cgit