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_printer.cpp | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'src/c_fl_printer.cpp') diff --git a/src/c_fl_printer.cpp b/src/c_fl_printer.cpp index 9967678..94f31d5 100644 --- a/src/c_fl_printer.cpp +++ b/src/c_fl_printer.cpp @@ -20,7 +20,7 @@ PRINTER new_fl_printer(void) { } void free_fl_printer(PRINTER p) { - delete reinterpret_cast(p); + delete static_cast(p); } @@ -182,78 +182,78 @@ void fl_printer_set_property_cancel(const char * v) { int fl_printer_start_job(PRINTER p, int c) { - return reinterpret_cast(p)->start_job(c, 0, 0); + return static_cast(p)->start_job(c, 0, 0); } int fl_printer_start_job2(PRINTER p, int c, int * f, int * t) { - return reinterpret_cast(p)->start_job(c, f, t); + return static_cast(p)->start_job(c, f, t); } void fl_printer_end_job(PRINTER p) { - reinterpret_cast(p)->end_job(); + static_cast(p)->end_job(); } int fl_printer_start_page(PRINTER p) { - return reinterpret_cast(p)->start_page(); + return static_cast(p)->start_page(); } int fl_printer_end_page(PRINTER p) { - return reinterpret_cast(p)->end_page(); + return static_cast(p)->end_page(); } void fl_printer_margins(PRINTER p, int * l, int * t, int * r, int * b) { - reinterpret_cast(p)->margins(l,t,r,b); + static_cast(p)->margins(l,t,r,b); } int fl_printer_printable_rect(PRINTER p, int * w, int * h) { - return reinterpret_cast(p)->printable_rect(w,h); + return static_cast(p)->printable_rect(w,h); } void fl_printer_get_origin(PRINTER p, int * x, int * y) { - reinterpret_cast(p)->origin(x,y); + static_cast(p)->origin(x,y); } void fl_printer_set_origin(PRINTER p, int x, int y) { - reinterpret_cast(p)->origin(x,y); + static_cast(p)->origin(x,y); } void fl_printer_rotate(PRINTER p, float r) { - reinterpret_cast(p)->rotate(r); + static_cast(p)->rotate(r); } void fl_printer_scale(PRINTER p, float x, float y) { - reinterpret_cast(p)->scale(x,y); + static_cast(p)->scale(x,y); } void fl_printer_translate(PRINTER p, int x, int y) { - reinterpret_cast(p)->translate(x,y); + static_cast(p)->translate(x,y); } void fl_printer_untranslate(PRINTER p) { - reinterpret_cast(p)->untranslate(); + static_cast(p)->untranslate(); } void fl_printer_print_widget(PRINTER p, void * i, int dx, int dy) { - reinterpret_cast(p)->print_widget(reinterpret_cast(i),dx,dy); + static_cast(p)->print_widget(static_cast(i),dx,dy); } void fl_printer_print_window_part(PRINTER p, void * i, int x, int y, int w, int h, int dx, int dy) { - reinterpret_cast(p)->print_window_part(reinterpret_cast(i),x,y,w,h,dx,dy); + static_cast(p)->print_window_part(static_cast(i),x,y,w,h,dx,dy); } void fl_printer_set_current(PRINTER p) { - reinterpret_cast(p)->set_current(); + static_cast(p)->set_current(); } -- cgit