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_file_chooser.cpp | 82 +++++++++++++++++++++++------------------------ 1 file changed, 41 insertions(+), 41 deletions(-) (limited to 'src/c_fl_file_chooser.cpp') diff --git a/src/c_fl_file_chooser.cpp b/src/c_fl_file_chooser.cpp index 3ca16e2..bdb35b0 100644 --- a/src/c_fl_file_chooser.cpp +++ b/src/c_fl_file_chooser.cpp @@ -39,33 +39,33 @@ FILECHOOSER new_fl_file_chooser(const char * n, const char * p, int k, const cha } void free_fl_file_chooser(FILECHOOSER f) { - delete reinterpret_cast(f); + delete static_cast(f); } void * fl_file_chooser_get_user_data(FILECHOOSER f) { - return reinterpret_cast(f)->user_data(); + return static_cast(f)->user_data(); } void fl_file_chooser_set_user_data(FILECHOOSER f, void * ud) { - reinterpret_cast(f)->user_data(ud); + static_cast(f)->user_data(ud); } void * fl_file_chooser_newbutton(FILECHOOSER f) { - return reinterpret_cast(f)->newButton; + return static_cast(f)->newButton; } void * fl_file_chooser_previewbutton(FILECHOOSER f) { - return reinterpret_cast(f)->previewButton; + return static_cast(f)->previewButton; } void * fl_file_chooser_showhiddenbutton(FILECHOOSER f) { - return reinterpret_cast(f)->showHiddenButton; + return static_cast(f)->showHiddenButton; } @@ -187,154 +187,154 @@ void fl_file_chooser_set_show_label(const char * s) { void * fl_file_chooser_add_extra(FILECHOOSER f, void * w) { - return reinterpret_cast(f)->add_extra(reinterpret_cast(w)); + return static_cast(f)->add_extra(static_cast(w)); } typedef void (*Chooser_Callback)(Fl_File_Chooser *, void *); void fl_file_chooser_callback(FILECHOOSER f, void * c, void * u) { - reinterpret_cast(f)->callback(reinterpret_cast(c), u); + static_cast(f)->callback(reinterpret_cast(c), u); } unsigned int fl_file_chooser_get_color(FILECHOOSER f) { - return reinterpret_cast(f)->color(); + return static_cast(f)->color(); } void fl_file_chooser_set_color(FILECHOOSER f, unsigned int c) { - reinterpret_cast(f)->color(c); + static_cast(f)->color(c); } unsigned char fl_file_chooser_get_iconsize(FILECHOOSER f) { - return reinterpret_cast(f)->iconsize(); + return static_cast(f)->iconsize(); } void fl_file_chooser_set_iconsize(FILECHOOSER f, unsigned char i) { - reinterpret_cast(f)->iconsize(i); + static_cast(f)->iconsize(i); } const char * fl_file_chooser_get_label(FILECHOOSER f) { - return reinterpret_cast(f)->label(); + return static_cast(f)->label(); } void fl_file_chooser_set_label(FILECHOOSER f, const char * t) { - reinterpret_cast(f)->label(t); + static_cast(f)->label(t); } const char * fl_file_chooser_get_ok_label(FILECHOOSER f) { - return reinterpret_cast(f)->ok_label(); + return static_cast(f)->ok_label(); } void fl_file_chooser_set_ok_label(FILECHOOSER f, const char * t) { - reinterpret_cast(f)->ok_label(t); + static_cast(f)->ok_label(t); } int fl_file_chooser_get_preview(FILECHOOSER f) { - return reinterpret_cast(f)->preview(); + return static_cast(f)->preview(); } void fl_file_chooser_set_preview(FILECHOOSER f, int p) { - reinterpret_cast(f)->preview(p); + static_cast(f)->preview(p); } unsigned int fl_file_chooser_get_textcolor(FILECHOOSER f) { - return reinterpret_cast(f)->textcolor(); + return static_cast(f)->textcolor(); } void fl_file_chooser_set_textcolor(FILECHOOSER f, unsigned int c) { - reinterpret_cast(f)->textcolor(c); + static_cast(f)->textcolor(c); } int fl_file_chooser_get_textfont(FILECHOOSER f) { - return reinterpret_cast(f)->textfont(); + return static_cast(f)->textfont(); } void fl_file_chooser_set_textfont(FILECHOOSER f, int n) { - reinterpret_cast(f)->textfont(n); + static_cast(f)->textfont(n); } int fl_file_chooser_get_textsize(FILECHOOSER f) { - return reinterpret_cast(f)->textsize(); + return static_cast(f)->textsize(); } void fl_file_chooser_set_textsize(FILECHOOSER f, int s) { - reinterpret_cast(f)->textsize(s); + static_cast(f)->textsize(s); } int fl_file_chooser_get_type(FILECHOOSER f) { - return reinterpret_cast(f)->type(); + return static_cast(f)->type(); } void fl_file_chooser_set_type(FILECHOOSER f, int t) { - reinterpret_cast(f)->type(t); + static_cast(f)->type(t); } int fl_file_chooser_count(FILECHOOSER f) { - return reinterpret_cast(f)->count(); + return static_cast(f)->count(); } const char * fl_file_chooser_get_directory(FILECHOOSER f) { - return reinterpret_cast(f)->directory(); + return static_cast(f)->directory(); } void fl_file_chooser_set_directory(FILECHOOSER f, const char * v) { - reinterpret_cast(f)->directory(v); + static_cast(f)->directory(v); } const char * fl_file_chooser_get_filter(FILECHOOSER f) { - return reinterpret_cast(f)->filter(); + return static_cast(f)->filter(); } void fl_file_chooser_set_filter(FILECHOOSER f, const char * v) { - reinterpret_cast(f)->filter(v); + static_cast(f)->filter(v); } int fl_file_chooser_get_filter_value(FILECHOOSER f) { - return reinterpret_cast(f)->filter_value(); + return static_cast(f)->filter_value(); } void fl_file_chooser_set_filter_value(FILECHOOSER f, int v) { - reinterpret_cast(f)->filter_value(v); + static_cast(f)->filter_value(v); } void fl_file_chooser_rescan(FILECHOOSER f) { - reinterpret_cast(f)->rescan(); + static_cast(f)->rescan(); } void fl_file_chooser_rescan_keep_filename(FILECHOOSER f) { - reinterpret_cast(f)->rescan_keep_filename(); + static_cast(f)->rescan_keep_filename(); } const char * fl_file_chooser_get_value(FILECHOOSER f, int n) { - return reinterpret_cast(f)->value(n); + return static_cast(f)->value(n); } void fl_file_chooser_set_value(FILECHOOSER f, const char * v) { - reinterpret_cast(f)->value(v); + static_cast(f)->value(v); } void fl_file_chooser_show(FILECHOOSER f) { - reinterpret_cast(f)->show(); + static_cast(f)->show(); } void fl_file_chooser_hide(FILECHOOSER f) { - reinterpret_cast(f)->hide(); + static_cast(f)->hide(); } int fl_file_chooser_shown(FILECHOOSER f) { - return reinterpret_cast(f)->shown(); + return static_cast(f)->shown(); } int fl_file_chooser_visible(FILECHOOSER f) { - return reinterpret_cast(f)->visible(); + return static_cast(f)->visible(); } -- cgit