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_input.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/c_fl_file_input.cpp') diff --git a/src/c_fl_file_input.cpp b/src/c_fl_file_input.cpp index adf8f37..8d0b15f 100644 --- a/src/c_fl_file_input.cpp +++ b/src/c_fl_file_input.cpp @@ -50,48 +50,48 @@ FILEINPUT new_fl_file_input(int x, int y, int w, int h, char* label) { } void free_fl_file_input(FILEINPUT i) { - delete reinterpret_cast(i); + delete static_cast(i); } int fl_file_input_get_down_box(FILEINPUT i) { - return reinterpret_cast(i)->down_box(); + return static_cast(i)->down_box(); } void fl_file_input_set_down_box(FILEINPUT i, int t) { - reinterpret_cast(i)->down_box(static_cast(t)); + static_cast(i)->down_box(static_cast(t)); } unsigned int fl_file_input_get_errorcolor(FILEINPUT i) { - return reinterpret_cast(i)->errorcolor(); + return static_cast(i)->errorcolor(); } void fl_file_input_set_errorcolor(FILEINPUT i, unsigned int t) { - reinterpret_cast(i)->errorcolor(t); + static_cast(i)->errorcolor(t); } const char * fl_file_input_get_value(FILEINPUT i) { - return reinterpret_cast(i)->value(); + return static_cast(i)->value(); } int fl_file_input_set_value(FILEINPUT i, const char * s, int len) { - return reinterpret_cast(i)->value(s,len); + return static_cast(i)->value(s,len); } void fl_file_input_draw(FILEINPUT i) { - reinterpret_cast(i)->Fl_File_Input::draw(); + static_cast(i)->Fl_File_Input::draw(); } int fl_file_input_handle(FILEINPUT i, int e) { - return reinterpret_cast(i)->Fl_File_Input::handle(e); + return static_cast(i)->Fl_File_Input::handle(e); } -- cgit