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_label.cpp | |
parent | ba1719013e5bab82a2accb4aadfd8451c3ebc931 (diff) |
Changed reinterpret_cast to static_cast where applicable
Diffstat (limited to 'src/c_fl_label.cpp')
-rw-r--r-- | src/c_fl_label.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
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<Fl_Label*>(l); + delete static_cast<Fl_Label*>(l); } void fl_label_set_value(LABEL l, const char * v) { - reinterpret_cast<Fl_Label*>(l)->value = v; + static_cast<Fl_Label*>(l)->value = v; } int fl_label_get_font(LABEL l) { - return reinterpret_cast<Fl_Label*>(l)->font; + return static_cast<Fl_Label*>(l)->font; } void fl_label_set_font(LABEL l, int f) { - reinterpret_cast<Fl_Label*>(l)->font = f; + static_cast<Fl_Label*>(l)->font = f; } int fl_label_get_size(LABEL l) { - return reinterpret_cast<Fl_Label*>(l)->size; + return static_cast<Fl_Label*>(l)->size; } void fl_label_set_size(LABEL l, int s) { - reinterpret_cast<Fl_Label*>(l)->size = s; + static_cast<Fl_Label*>(l)->size = s; } unsigned int fl_label_get_color(LABEL l) { - return reinterpret_cast<Fl_Label*>(l)->color; + return static_cast<Fl_Label*>(l)->color; } void fl_label_set_color(LABEL l, unsigned int h) { - reinterpret_cast<Fl_Label*>(l)->color = h; + static_cast<Fl_Label*>(l)->color = h; } int fl_label_get_type(LABEL l) { - return (int)reinterpret_cast<Fl_Label*>(l)->type; + return (int)static_cast<Fl_Label*>(l)->type; } void fl_label_set_type(LABEL l, int k) { - reinterpret_cast<Fl_Label*>(l)->type = (uchar)k; + static_cast<Fl_Label*>(l)->type = (uchar)k; } unsigned int fl_label_get_align(LABEL l) { - return reinterpret_cast<Fl_Label*>(l)->align_; + return static_cast<Fl_Label*>(l)->align_; } void fl_label_set_align(LABEL l, unsigned int p) { - reinterpret_cast<Fl_Label*>(l)->align_ = p; + static_cast<Fl_Label*>(l)->align_ = p; } void fl_label_set_image(LABEL l, void * i) { - reinterpret_cast<Fl_Label*>(l)->image = reinterpret_cast<Fl_Image*>(i); + static_cast<Fl_Label*>(l)->image = static_cast<Fl_Image*>(i); } void fl_label_set_deimage(LABEL l, void * i) { - reinterpret_cast<Fl_Label*>(l)->deimage = reinterpret_cast<Fl_Image*>(i); + static_cast<Fl_Label*>(l)->deimage = static_cast<Fl_Image*>(i); } void fl_label_draw(LABEL l, int x, int y, int w, int h, unsigned int p) { - reinterpret_cast<Fl_Label*>(l)->draw(x, y, w, h, p); + static_cast<Fl_Label*>(l)->draw(x, y, w, h, p); } void fl_label_measure(LABEL l, int &w, int &h) { - reinterpret_cast<Fl_Label*>(l)->measure(w, h); + static_cast<Fl_Label*>(l)->measure(w, h); } |