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_label.cpp | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'src/c_fl_label.cpp') diff --git a/src/c_fl_label.cpp b/src/c_fl_label.cpp index 1fb5579..2200c51 100644 --- a/src/c_fl_label.cpp +++ b/src/c_fl_label.cpp @@ -23,73 +23,73 @@ LABEL new_fl_label(const char * v, int f, int s, unsigned int h, int k, unsigned } void free_fl_label(LABEL l) { - delete reinterpret_cast(l); + delete static_cast(l); } void fl_label_set_value(LABEL l, const char * v) { - reinterpret_cast(l)->value = v; + static_cast(l)->value = v; } int fl_label_get_font(LABEL l) { - return reinterpret_cast(l)->font; + return static_cast(l)->font; } void fl_label_set_font(LABEL l, int f) { - reinterpret_cast(l)->font = f; + static_cast(l)->font = f; } int fl_label_get_size(LABEL l) { - return reinterpret_cast(l)->size; + return static_cast(l)->size; } void fl_label_set_size(LABEL l, int s) { - reinterpret_cast(l)->size = s; + static_cast(l)->size = s; } unsigned int fl_label_get_color(LABEL l) { - return reinterpret_cast(l)->color; + return static_cast(l)->color; } void fl_label_set_color(LABEL l, unsigned int h) { - reinterpret_cast(l)->color = h; + static_cast(l)->color = h; } int fl_label_get_type(LABEL l) { - return (int)reinterpret_cast(l)->type; + return (int)static_cast(l)->type; } void fl_label_set_type(LABEL l, int k) { - reinterpret_cast(l)->type = (uchar)k; + static_cast(l)->type = (uchar)k; } unsigned int fl_label_get_align(LABEL l) { - return reinterpret_cast(l)->align_; + return static_cast(l)->align_; } void fl_label_set_align(LABEL l, unsigned int p) { - reinterpret_cast(l)->align_ = p; + static_cast(l)->align_ = p; } void fl_label_set_image(LABEL l, void * i) { - reinterpret_cast(l)->image = reinterpret_cast(i); + static_cast(l)->image = static_cast(i); } void fl_label_set_deimage(LABEL l, void * i) { - reinterpret_cast(l)->deimage = reinterpret_cast(i); + static_cast(l)->deimage = static_cast(i); } void fl_label_draw(LABEL l, int x, int y, int w, int h, unsigned int p) { - reinterpret_cast(l)->draw(x, y, w, h, p); + static_cast(l)->draw(x, y, w, h, p); } void fl_label_measure(LABEL l, int &w, int &h) { - reinterpret_cast(l)->measure(w, h); + static_cast(l)->measure(w, h); } -- cgit