X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/373c713ad4eed29128b0619b508da4a29698d145..5bf3b6fe48580853044132c381d3548535ca7ad1:/src/msw/printwin.cpp diff --git a/src/msw/printwin.cpp b/src/msw/printwin.cpp index 281521c391..99f2892758 100644 --- a/src/msw/printwin.cpp +++ b/src/msw/printwin.cpp @@ -286,7 +286,7 @@ bool wxWindowsPrinter::Print(wxWindow *parent, wxPrintout *printout, bool prompt wxDC *wxWindowsPrinter::PrintDialog(wxWindow *parent) { - wxDC *dc = (wxPrinterDC*) NULL; + wxDC *dc = NULL; wxWindowsPrintDialog dialog(parent, & m_printDialogData); int ret = dialog.ShowModal(); @@ -508,7 +508,7 @@ public: const wxSize& fullSize) : wxDC(new PageFragmentDCImpl((wxMemoryDC*)this, printer, offset, fullSize)) { - wx_static_cast(PageFragmentDCImpl*, m_pimpl)->DoSelect(bmp); + static_cast(m_pimpl)->DoSelect(bmp); } };