diff options
author | Jedidiah Barber <contact@jedbarber.id.au> | 2025-01-16 14:21:05 +1300 |
---|---|---|
committer | Jedidiah Barber <contact@jedbarber.id.au> | 2025-01-16 14:21:05 +1300 |
commit | dbf6f4db24aee7315b2782a87e127367887e2036 (patch) | |
tree | 91f5af52dbdf6be9e1f5026bcf354a6455dd411d /src/c_fl_value_output.cpp | |
parent | ba1719013e5bab82a2accb4aadfd8451c3ebc931 (diff) |
Changed reinterpret_cast to static_cast where applicable
Diffstat (limited to 'src/c_fl_value_output.cpp')
-rw-r--r-- | src/c_fl_value_output.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
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<My_Value_Output*>(a); + delete static_cast<My_Value_Output*>(a); } int fl_value_output_is_soft(VALUEOUTPUT a) { - return reinterpret_cast<Fl_Value_Output*>(a)->soft(); + return static_cast<Fl_Value_Output*>(a)->soft(); } void fl_value_output_set_soft(VALUEOUTPUT a, int t) { - reinterpret_cast<Fl_Value_Output*>(a)->soft(t); + static_cast<Fl_Value_Output*>(a)->soft(t); } unsigned int fl_value_output_get_text_color(VALUEOUTPUT v) { - return reinterpret_cast<Fl_Value_Output*>(v)->textcolor(); + return static_cast<Fl_Value_Output*>(v)->textcolor(); } void fl_value_output_set_text_color(VALUEOUTPUT v, unsigned int c) { - reinterpret_cast<Fl_Value_Output*>(v)->textcolor(static_cast<Fl_Color>(c)); + static_cast<Fl_Value_Output*>(v)->textcolor(static_cast<Fl_Color>(c)); } int fl_value_output_get_text_font(VALUEOUTPUT v) { - return reinterpret_cast<Fl_Value_Output*>(v)->textfont(); + return static_cast<Fl_Value_Output*>(v)->textfont(); } void fl_value_output_set_text_font(VALUEOUTPUT v, int f) { - reinterpret_cast<Fl_Value_Output*>(v)->textfont(static_cast<Fl_Font>(f)); + static_cast<Fl_Value_Output*>(v)->textfont(static_cast<Fl_Font>(f)); } int fl_value_output_get_text_size(VALUEOUTPUT v) { - return reinterpret_cast<Fl_Value_Output*>(v)->textsize(); + return static_cast<Fl_Value_Output*>(v)->textsize(); } void fl_value_output_set_text_size(VALUEOUTPUT v, int s) { - reinterpret_cast<Fl_Value_Output*>(v)->textsize(static_cast<Fl_Fontsize>(s)); + static_cast<Fl_Value_Output*>(v)->textsize(static_cast<Fl_Fontsize>(s)); } void fl_value_output_draw(VALUEOUTPUT a) { - reinterpret_cast<My_Value_Output*>(a)->Fl_Value_Output::draw(); + static_cast<My_Value_Output*>(a)->Fl_Value_Output::draw(); } int fl_value_output_handle(VALUEOUTPUT a, int e) { - return reinterpret_cast<My_Value_Output*>(a)->Fl_Value_Output::handle(e); + return static_cast<My_Value_Output*>(a)->Fl_Value_Output::handle(e); } |