X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/788233da909b0f6bc684a99200c614e3dee2aa20..3b01b1fe4cb656f39290bf7f3891667855abe601:/samples/printing/printing.h diff --git a/samples/printing/printing.h b/samples/printing/printing.h index 927676794c..25e098350d 100644 --- a/samples/printing/printing.h +++ b/samples/printing/printing.h @@ -1,6 +1,6 @@ ///////////////////////////////////////////////////////////////////////////// // Name: printing.h -// Purpose: Printing demo for wxWindows +// Purpose: Printing demo for wxWidgets // Author: Julian Smart // Modified by: // Created: 1995 @@ -17,11 +17,11 @@ class MyApp: public wxApp { public: - MyApp() ; + MyApp(){}; bool OnInit(); int OnExit(); - wxFont* m_testFont; + wxFont m_testFont; }; DECLARE_APP(MyApp) @@ -59,7 +59,7 @@ class MyCanvas: public wxScrolledWindow { public: MyCanvas(wxFrame *frame, const wxPoint& pos, const wxSize& size, long style = wxRETAINED); - ~MyCanvas(void) ; + ~MyCanvas(void){}; virtual void OnDraw(wxDC& dc); void OnEvent(wxMouseEvent& event); @@ -70,7 +70,7 @@ DECLARE_EVENT_TABLE() class MyPrintout: public wxPrintout { public: - MyPrintout(char *title = "My printout"):wxPrintout(title) {} + MyPrintout(wxChar *title = _T("My printout")):wxPrintout(title) {} bool OnPrintPage(int page); bool HasPage(int page); bool OnBeginDocument(int startPage, int endPage);