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_output.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src/c_fl_value_output.cpp') diff --git a/src/c_fl_value_output.cpp b/src/c_fl_value_output.cpp index b7cc1d6..3294b6b 100644 --- a/src/c_fl_value_output.cpp +++ b/src/c_fl_value_output.cpp @@ -50,56 +50,56 @@ VALUEOUTPUT new_fl_value_output(int x, int y, int w, int h, char* label) { } void free_fl_value_output(VALUEOUTPUT a) { - delete reinterpret_cast(a); + delete static_cast(a); } int fl_value_output_is_soft(VALUEOUTPUT a) { - return reinterpret_cast(a)->soft(); + return static_cast(a)->soft(); } void fl_value_output_set_soft(VALUEOUTPUT a, int t) { - reinterpret_cast(a)->soft(t); + static_cast(a)->soft(t); } unsigned int fl_value_output_get_text_color(VALUEOUTPUT v) { - return reinterpret_cast(v)->textcolor(); + return static_cast(v)->textcolor(); } void fl_value_output_set_text_color(VALUEOUTPUT v, unsigned int c) { - reinterpret_cast(v)->textcolor(static_cast(c)); + static_cast(v)->textcolor(static_cast(c)); } int fl_value_output_get_text_font(VALUEOUTPUT v) { - return reinterpret_cast(v)->textfont(); + return static_cast(v)->textfont(); } void fl_value_output_set_text_font(VALUEOUTPUT v, int f) { - reinterpret_cast(v)->textfont(static_cast(f)); + static_cast(v)->textfont(static_cast(f)); } int fl_value_output_get_text_size(VALUEOUTPUT v) { - return reinterpret_cast(v)->textsize(); + return static_cast(v)->textsize(); } void fl_value_output_set_text_size(VALUEOUTPUT v, int s) { - reinterpret_cast(v)->textsize(static_cast(s)); + static_cast(v)->textsize(static_cast(s)); } void fl_value_output_draw(VALUEOUTPUT a) { - reinterpret_cast(a)->Fl_Value_Output::draw(); + static_cast(a)->Fl_Value_Output::draw(); } int fl_value_output_handle(VALUEOUTPUT a, int e) { - return reinterpret_cast(a)->Fl_Value_Output::handle(e); + return static_cast(a)->Fl_Value_Output::handle(e); } -- cgit