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_value_input.cpp | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'src/c_fl_value_input.cpp') diff --git a/src/c_fl_value_input.cpp b/src/c_fl_value_input.cpp index 37273a7..e6a5498 100644 --- a/src/c_fl_value_input.cpp +++ b/src/c_fl_value_input.cpp @@ -50,92 +50,92 @@ VALUEINPUT new_fl_value_input(int x, int y, int w, int h, char* label) { } void free_fl_value_input(VALUEINPUT a) { - delete reinterpret_cast(a); + delete static_cast(a); } void * fl_value_input_get_input(VALUEINPUT v) { - return &(reinterpret_cast(v)->input); + return &(static_cast(v)->input); } unsigned int fl_value_input_get_cursor_color(VALUEINPUT v) { - return reinterpret_cast(v)->cursor_color(); + return static_cast(v)->cursor_color(); } void fl_value_input_set_cursor_color(VALUEINPUT v, unsigned int c) { - reinterpret_cast(v)->cursor_color(c); + static_cast(v)->cursor_color(c); } int fl_value_input_get_shortcut(VALUEINPUT v) { - return reinterpret_cast(v)->Fl_Value_Input::shortcut(); + return static_cast(v)->Fl_Value_Input::shortcut(); } void fl_value_input_set_shortcut(VALUEINPUT v, int k) { - reinterpret_cast(v)->Fl_Value_Input::shortcut(k); + static_cast(v)->Fl_Value_Input::shortcut(k); } int fl_value_input_is_soft(VALUEINPUT a) { - return reinterpret_cast(a)->soft(); + return static_cast(a)->soft(); } void fl_value_input_set_soft(VALUEINPUT a, int t) { - reinterpret_cast(a)->soft(t); + static_cast(a)->soft(t); } unsigned int fl_value_input_get_text_color(VALUEINPUT v) { - return reinterpret_cast(v)->textcolor(); + return static_cast(v)->textcolor(); } void fl_value_input_set_text_color(VALUEINPUT v, unsigned int c) { - reinterpret_cast(v)->textcolor(static_cast(c)); + static_cast(v)->textcolor(static_cast(c)); } int fl_value_input_get_text_font(VALUEINPUT v) { - return reinterpret_cast(v)->textfont(); + return static_cast(v)->textfont(); } void fl_value_input_set_text_font(VALUEINPUT v, int f) { - reinterpret_cast(v)->textfont(static_cast(f)); + static_cast(v)->textfont(static_cast(f)); } int fl_value_input_get_text_size(VALUEINPUT v) { - return reinterpret_cast(v)->textsize(); + return static_cast(v)->textsize(); } void fl_value_input_set_text_size(VALUEINPUT v, int s) { - reinterpret_cast(v)->textsize(static_cast(s)); + static_cast(v)->textsize(static_cast(s)); } void fl_value_input_resize(VALUEINPUT 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); } void fl_value_input_draw(VALUEINPUT a) { - reinterpret_cast(a)->Fl_Value_Input::draw(); + static_cast(a)->Fl_Value_Input::draw(); } int fl_value_input_handle(VALUEINPUT a, int e) { - return reinterpret_cast(a)->Fl_Value_Input::handle(e); + return static_cast(a)->Fl_Value_Input::handle(e); } -- cgit