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_valuator.cpp | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'src/c_fl_valuator.cpp') diff --git a/src/c_fl_valuator.cpp b/src/c_fl_valuator.cpp index f70e6dd..b878077 100644 --- a/src/c_fl_valuator.cpp +++ b/src/c_fl_valuator.cpp @@ -61,84 +61,84 @@ VALUATOR new_fl_valuator(int x, int y, int w, int h, char* label) { } void free_fl_valuator(VALUATOR v) { - delete reinterpret_cast(v); + delete static_cast(v); } double fl_valuator_clamp(VALUATOR v, double a) { - return reinterpret_cast(v)->clamp(a); + return static_cast(v)->clamp(a); } double fl_valuator_round(VALUATOR v, double a) { - return reinterpret_cast(v)->round(a); + return static_cast(v)->round(a); } double fl_valuator_increment(VALUATOR v, double a, int s) { - return reinterpret_cast(v)->increment(a,s); + return static_cast(v)->increment(a,s); } double fl_valuator_get_minimum(VALUATOR v) { - return reinterpret_cast(v)->minimum(); + return static_cast(v)->minimum(); } void fl_valuator_set_minimum(VALUATOR v, double t) { - reinterpret_cast(v)->minimum(t); + static_cast(v)->minimum(t); } double fl_valuator_get_maximum(VALUATOR v) { - return reinterpret_cast(v)->maximum(); + return static_cast(v)->maximum(); } void fl_valuator_set_maximum(VALUATOR v, double t) { - reinterpret_cast(v)->maximum(t); + static_cast(v)->maximum(t); } double fl_valuator_get_step(VALUATOR v) { - return reinterpret_cast(v)->step(); + return static_cast(v)->step(); } void fl_valuator_set_step_top(VALUATOR v, double t) { - reinterpret_cast(v)->step(t); + static_cast(v)->step(t); } void fl_valuator_set_step_bottom(VALUATOR v, int b) { - reinterpret_cast(v)->step(b); + static_cast(v)->step(b); } void fl_valuator_set_step(VALUATOR v, double t, int b) { - reinterpret_cast(v)->step(t, b); + static_cast(v)->step(t, b); } double fl_valuator_get_value(VALUATOR v) { - return reinterpret_cast(v)->value(); + return static_cast(v)->value(); } void fl_valuator_set_value(VALUATOR v, double t) { - reinterpret_cast(v)->value(t); + static_cast(v)->value(t); } void fl_valuator_bounds(VALUATOR v, double a, double b) { - reinterpret_cast(v)->bounds(a,b); + static_cast(v)->bounds(a,b); } void fl_valuator_precision(VALUATOR v, int s) { - reinterpret_cast(v)->precision(s); + static_cast(v)->precision(s); } void fl_valuator_range(VALUATOR v, double a, double b) { - reinterpret_cast(v)->range(a,b); + static_cast(v)->range(a,b); } void fl_valuator_value_damage(VALUATOR v) { - (reinterpret_cast(v)->*(&Friend_Valuator::value_damage))(); + (static_cast(v)->*(&Friend_Valuator::value_damage))(); } void fl_valuator_draw(VALUATOR v) { @@ -150,7 +150,7 @@ void fl_valuator_draw(VALUATOR v) { } int fl_valuator_handle(VALUATOR v, int e) { - return reinterpret_cast(v)->Fl_Valuator::handle(e); + return static_cast(v)->Fl_Valuator::handle(e); } -- cgit