X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3d7cfc2fe66236d2de52108d613ced889a576423..226de48a85fdfc8ada9c5fa942f94eecc7dc7f8c:/samples/printing/printing.cpp diff --git a/samples/printing/printing.cpp b/samples/printing/printing.cpp index 3240955a5b..0035f4b1ad 100644 --- a/samples/printing/printing.cpp +++ b/samples/printing/printing.cpp @@ -9,10 +9,6 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ -#pragma implementation -#endif - // For compilers that support precompilation, includes "wx/wx.h". #include "wx/wxprec.h" @@ -70,7 +66,7 @@ wxPageSetupData* g_pageSetupData = (wxPageSetupData*) NULL; IMPLEMENT_APP(MyApp) // Writes a header on a page. Margin units are in millimetres. -bool WritePageHeader(wxPrintout *printout, wxDC *dc, wxChar *text, float mmToLogical); +bool WritePageHeader(wxPrintout *printout, wxDC *dc, const wxChar *text, float mmToLogical); // The `main program' equivalent, creating the windows and returning the // main frame @@ -582,7 +578,7 @@ void MyPrintout::DrawPageTwo(wxDC *dc) } // Writes a header on a page. Margin units are in millimetres. -bool WritePageHeader(wxPrintout *printout, wxDC *dc, wxChar *text, float mmToLogical) +bool WritePageHeader(wxPrintout *printout, wxDC *dc, const wxChar *text, float mmToLogical) { /* static wxFont *headerFont = (wxFont *) NULL;