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_printer.cpp | |
parent | ba1719013e5bab82a2accb4aadfd8451c3ebc931 (diff) |
Changed reinterpret_cast to static_cast where applicable
Diffstat (limited to 'src/c_fl_printer.cpp')
-rw-r--r-- | src/c_fl_printer.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
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<Fl_Printer*>(p); + delete static_cast<Fl_Printer*>(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<Fl_Printer*>(p)->start_job(c, 0, 0); + return static_cast<Fl_Printer*>(p)->start_job(c, 0, 0); } int fl_printer_start_job2(PRINTER p, int c, int * f, int * t) { - return reinterpret_cast<Fl_Printer*>(p)->start_job(c, f, t); + return static_cast<Fl_Printer*>(p)->start_job(c, f, t); } void fl_printer_end_job(PRINTER p) { - reinterpret_cast<Fl_Printer*>(p)->end_job(); + static_cast<Fl_Printer*>(p)->end_job(); } int fl_printer_start_page(PRINTER p) { - return reinterpret_cast<Fl_Printer*>(p)->start_page(); + return static_cast<Fl_Printer*>(p)->start_page(); } int fl_printer_end_page(PRINTER p) { - return reinterpret_cast<Fl_Printer*>(p)->end_page(); + return static_cast<Fl_Printer*>(p)->end_page(); } void fl_printer_margins(PRINTER p, int * l, int * t, int * r, int * b) { - reinterpret_cast<Fl_Printer*>(p)->margins(l,t,r,b); + static_cast<Fl_Printer*>(p)->margins(l,t,r,b); } int fl_printer_printable_rect(PRINTER p, int * w, int * h) { - return reinterpret_cast<Fl_Printer*>(p)->printable_rect(w,h); + return static_cast<Fl_Printer*>(p)->printable_rect(w,h); } void fl_printer_get_origin(PRINTER p, int * x, int * y) { - reinterpret_cast<Fl_Printer*>(p)->origin(x,y); + static_cast<Fl_Printer*>(p)->origin(x,y); } void fl_printer_set_origin(PRINTER p, int x, int y) { - reinterpret_cast<Fl_Printer*>(p)->origin(x,y); + static_cast<Fl_Printer*>(p)->origin(x,y); } void fl_printer_rotate(PRINTER p, float r) { - reinterpret_cast<Fl_Printer*>(p)->rotate(r); + static_cast<Fl_Printer*>(p)->rotate(r); } void fl_printer_scale(PRINTER p, float x, float y) { - reinterpret_cast<Fl_Printer*>(p)->scale(x,y); + static_cast<Fl_Printer*>(p)->scale(x,y); } void fl_printer_translate(PRINTER p, int x, int y) { - reinterpret_cast<Fl_Printer*>(p)->translate(x,y); + static_cast<Fl_Printer*>(p)->translate(x,y); } void fl_printer_untranslate(PRINTER p) { - reinterpret_cast<Fl_Printer*>(p)->untranslate(); + static_cast<Fl_Printer*>(p)->untranslate(); } void fl_printer_print_widget(PRINTER p, void * i, int dx, int dy) { - reinterpret_cast<Fl_Printer*>(p)->print_widget(reinterpret_cast<Fl_Widget*>(i),dx,dy); + static_cast<Fl_Printer*>(p)->print_widget(static_cast<Fl_Widget*>(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<Fl_Printer*>(p)->print_window_part(reinterpret_cast<Fl_Window*>(i),x,y,w,h,dx,dy); + static_cast<Fl_Printer*>(p)->print_window_part(static_cast<Fl_Window*>(i),x,y,w,h,dx,dy); } void fl_printer_set_current(PRINTER p) { - reinterpret_cast<Fl_Printer*>(p)->set_current(); + static_cast<Fl_Printer*>(p)->set_current(); } |