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_postscript_file_device.cpp | |
parent | ba1719013e5bab82a2accb4aadfd8451c3ebc931 (diff) |
Changed reinterpret_cast to static_cast where applicable
Diffstat (limited to 'src/c_fl_postscript_file_device.cpp')
-rw-r--r-- | src/c_fl_postscript_file_device.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/src/c_fl_postscript_file_device.cpp b/src/c_fl_postscript_file_device.cpp index 22495dd..480d273 100644 --- a/src/c_fl_postscript_file_device.cpp +++ b/src/c_fl_postscript_file_device.cpp @@ -28,7 +28,7 @@ POSTSCRIPTFILEDEVICE new_fl_postscript_file_device(void) { } void free_fl_postscript_file_device(POSTSCRIPTFILEDEVICE p) { - delete reinterpret_cast<Fl_PostScript_File_Device*>(p); + delete static_cast<Fl_PostScript_File_Device*>(p); } @@ -46,80 +46,80 @@ void fl_postscript_file_device_set_file_chooser_title(const char * v) { void * fl_postscript_file_device_get_driver(POSTSCRIPTFILEDEVICE p) { - return (reinterpret_cast<Fl_PostScript_File_Device*>(p)->*(&My_PostScript_File_Device::driver))(); + return (static_cast<Fl_PostScript_File_Device*>(p)->*(&My_PostScript_File_Device::driver))(); } int fl_postscript_file_device_start_job(POSTSCRIPTFILEDEVICE p, int c) { - return reinterpret_cast<Fl_PostScript_File_Device*>(p)->start_job(c, 0, 0); + return static_cast<Fl_PostScript_File_Device*>(p)->start_job(c, 0, 0); } int fl_postscript_file_device_start_job2(POSTSCRIPTFILEDEVICE p, int c, int * f, int * t) { - return reinterpret_cast<Fl_PostScript_File_Device*>(p)->start_job(c, f, t); + return static_cast<Fl_PostScript_File_Device*>(p)->start_job(c, f, t); } int fl_postscript_file_device_start_job3(POSTSCRIPTFILEDEVICE p, void * o, int c, int f, int l) { - return reinterpret_cast<Fl_PostScript_File_Device*>(p)->start_job - (reinterpret_cast<FILE*>(o), + return static_cast<Fl_PostScript_File_Device*>(p)->start_job + (static_cast<FILE*>(o), c, static_cast<Fl_Paged_Device::Page_Format>(f), static_cast<Fl_Paged_Device::Page_Layout>(l)); } int fl_postscript_file_device_start_job4(POSTSCRIPTFILEDEVICE p, int c, int f, int l) { - return reinterpret_cast<Fl_PostScript_File_Device*>(p)->start_job + return static_cast<Fl_PostScript_File_Device*>(p)->start_job (c, static_cast<Fl_Paged_Device::Page_Format>(f), static_cast<Fl_Paged_Device::Page_Layout>(l)); } void fl_postscript_file_device_end_job(POSTSCRIPTFILEDEVICE p) { - reinterpret_cast<Fl_PostScript_File_Device*>(p)->end_job(); + static_cast<Fl_PostScript_File_Device*>(p)->end_job(); } int fl_postscript_file_device_start_page(POSTSCRIPTFILEDEVICE p) { - return reinterpret_cast<Fl_PostScript_File_Device*>(p)->start_page(); + return static_cast<Fl_PostScript_File_Device*>(p)->start_page(); } int fl_postscript_file_device_end_page(POSTSCRIPTFILEDEVICE p) { - return reinterpret_cast<Fl_PostScript_File_Device*>(p)->end_page(); + return static_cast<Fl_PostScript_File_Device*>(p)->end_page(); } void fl_postscript_file_device_margins(POSTSCRIPTFILEDEVICE p, int * l, int * t, int * r, int * b) { - reinterpret_cast<Fl_PostScript_File_Device*>(p)->margins(l,t,r,b); + static_cast<Fl_PostScript_File_Device*>(p)->margins(l,t,r,b); } int fl_postscript_file_device_printable_rect(POSTSCRIPTFILEDEVICE p, int * w, int * h) { - return reinterpret_cast<Fl_PostScript_File_Device*>(p)->printable_rect(w,h); + return static_cast<Fl_PostScript_File_Device*>(p)->printable_rect(w,h); } void fl_postscript_file_device_get_origin(POSTSCRIPTFILEDEVICE p, int * x, int * y) { - reinterpret_cast<Fl_PostScript_File_Device*>(p)->origin(x,y); + static_cast<Fl_PostScript_File_Device*>(p)->origin(x,y); } void fl_postscript_file_device_set_origin(POSTSCRIPTFILEDEVICE p, int x, int y) { - reinterpret_cast<Fl_PostScript_File_Device*>(p)->origin(x,y); + static_cast<Fl_PostScript_File_Device*>(p)->origin(x,y); } void fl_postscript_file_device_rotate(POSTSCRIPTFILEDEVICE p, float r) { - reinterpret_cast<Fl_PostScript_File_Device*>(p)->rotate(r); + static_cast<Fl_PostScript_File_Device*>(p)->rotate(r); } void fl_postscript_file_device_scale(POSTSCRIPTFILEDEVICE p, float x, float y) { - reinterpret_cast<Fl_PostScript_File_Device*>(p)->scale(x,y); + static_cast<Fl_PostScript_File_Device*>(p)->scale(x,y); } void fl_postscript_file_device_translate(POSTSCRIPTFILEDEVICE p, int x, int y) { - reinterpret_cast<Fl_PostScript_File_Device*>(p)->translate(x,y); + static_cast<Fl_PostScript_File_Device*>(p)->translate(x,y); } void fl_postscript_file_device_untranslate(POSTSCRIPTFILEDEVICE p) { - reinterpret_cast<Fl_PostScript_File_Device*>(p)->untranslate(); + static_cast<Fl_PostScript_File_Device*>(p)->untranslate(); } |