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_spinner.cpp | 54 ++++++++++++++++++++++++++-------------------------- 1 file changed, 27 insertions(+), 27 deletions(-) (limited to 'src/c_fl_spinner.cpp') diff --git a/src/c_fl_spinner.cpp b/src/c_fl_spinner.cpp index 71d86f8..a278c84 100644 --- a/src/c_fl_spinner.cpp +++ b/src/c_fl_spinner.cpp @@ -50,126 +50,126 @@ SPINNER new_fl_spinner(int x, int y, int w, int h, char* label) { } void free_fl_spinner(SPINNER n) { - delete reinterpret_cast(n); + delete static_cast(n); } unsigned int fl_spinner_get_color(SPINNER n) { - return reinterpret_cast(n)->color(); + return static_cast(n)->color(); } void fl_spinner_set_color(SPINNER n, unsigned int t) { - reinterpret_cast(n)->color(t); + static_cast(n)->color(t); } unsigned int fl_spinner_get_selection_color(SPINNER n) { - return reinterpret_cast(n)->selection_color(); + return static_cast(n)->selection_color(); } void fl_spinner_set_selection_color(SPINNER n, unsigned int t) { - reinterpret_cast(n)->selection_color(t); + static_cast(n)->selection_color(t); } unsigned int fl_spinner_get_textcolor(SPINNER n) { - return reinterpret_cast(n)->textcolor(); + return static_cast(n)->textcolor(); } void fl_spinner_set_textcolor(SPINNER n, unsigned int t) { - reinterpret_cast(n)->textcolor(t); + static_cast(n)->textcolor(t); } int fl_spinner_get_textfont(SPINNER n) { - return reinterpret_cast(n)->textfont(); + return static_cast(n)->textfont(); } void fl_spinner_set_textfont(SPINNER n, int t) { - reinterpret_cast(n)->textfont(t); + static_cast(n)->textfont(t); } int fl_spinner_get_textsize(SPINNER n) { - return reinterpret_cast(n)->textsize(); + return static_cast(n)->textsize(); } void fl_spinner_set_textsize(SPINNER n, int t) { - reinterpret_cast(n)->textsize(t); + static_cast(n)->textsize(t); } double fl_spinner_get_minimum(SPINNER n) { - return reinterpret_cast(n)->minimum(); + return static_cast(n)->minimum(); } void fl_spinner_set_minimum(SPINNER n, double t) { - reinterpret_cast(n)->minimum(t); + static_cast(n)->minimum(t); } double fl_spinner_get_maximum(SPINNER n) { - return reinterpret_cast(n)->maximum(); + return static_cast(n)->maximum(); } void fl_spinner_set_maximum(SPINNER n, double t) { - reinterpret_cast(n)->maximum(t); + static_cast(n)->maximum(t); } void fl_spinner_range(SPINNER n, double a, double b) { - reinterpret_cast(n)->range(a,b); + static_cast(n)->range(a,b); } double fl_spinner_get_step(SPINNER n) { - return reinterpret_cast(n)->step(); + return static_cast(n)->step(); } void fl_spinner_set_step(SPINNER n, double t) { - reinterpret_cast(n)->step(t); + static_cast(n)->step(t); } double fl_spinner_get_value(SPINNER n) { - return reinterpret_cast(n)->value(); + return static_cast(n)->value(); } void fl_spinner_set_value(SPINNER n, double t) { - reinterpret_cast(n)->value(t); + static_cast(n)->value(t); } const char * fl_spinner_get_format(SPINNER n) { - return reinterpret_cast(n)->format(); + return static_cast(n)->format(); } void fl_spinner_set_format(SPINNER n, const char * f) { - reinterpret_cast(n)->format(f); + static_cast(n)->format(f); } int fl_spinner_get_type(SPINNER n) { - return reinterpret_cast(n)->type(); + return static_cast(n)->type(); } void fl_spinner_set_type(SPINNER n, int t) { - reinterpret_cast(n)->type(t); + static_cast(n)->type(t); } void fl_spinner_resize(SPINNER n, int x, int y, int w, int h) { - reinterpret_cast(n)->resize(x, y, w, h); + static_cast(n)->resize(x, y, w, h); } void fl_spinner_draw(SPINNER n) { - reinterpret_cast(n)->Fl_Spinner::draw(); + static_cast(n)->Fl_Spinner::draw(); } int fl_spinner_handle(SPINNER n, int e) { - return reinterpret_cast(n)->Fl_Spinner::handle(e); + return static_cast(n)->Fl_Spinner::handle(e); } -- cgit