X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2b5f62a0b2db198609b45dec622a018dae37008e..f20a2e1f4066e4f0235698e6220f1eed91c73326:/samples/erase/erase.cpp diff --git a/samples/erase/erase.cpp b/samples/erase/erase.cpp index 307035e068..6e87821b5e 100644 --- a/samples/erase/erase.cpp +++ b/samples/erase/erase.cpp @@ -125,7 +125,7 @@ MyFrame::MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size) { SetIcon(wxICON(mondrian)); - wxMenu *menuFile = new wxMenu("", wxMENU_TEAROFF); + wxMenu *menuFile = new wxMenu(_T(""), wxMENU_TEAROFF); wxMenu *helpMenu = new wxMenu; helpMenu->Append(wxID_ABOUT, _T("&About...\tCtrl-A"), _T("Show about dialog")); @@ -203,7 +203,7 @@ void MyCanvas::OnChar( wxKeyEvent &event ) } -void MyCanvas::OnPaint( wxPaintEvent &event ) +void MyCanvas::OnPaint( wxPaintEvent &WXUNUSED(event) ) { wxPaintDC dc(this); PrepareDC( dc ); @@ -228,7 +228,7 @@ void MyCanvas::OnPaint( wxPaintEvent &event ) wxRegionIterator upd( GetUpdateRegion() ); while (upd) { - wxLogDebug( "Paint: %d %d %d %d", upd.GetX(), upd.GetY(), upd.GetWidth(), upd.GetHeight() ); + wxLogDebug( _T("Paint: %d %d %d %d"), upd.GetX(), upd.GetY(), upd.GetWidth(), upd.GetHeight() ); upd ++; } #endif @@ -236,7 +236,7 @@ void MyCanvas::OnPaint( wxPaintEvent &event ) #if 0 wxSize size = GetSize(); wxSize client_size = GetClientSize(); - wxLogDebug( "size %d %d client_size %d %d", size.x, size.y, client_size.x, client_size.y ); + wxLogDebug( _T("size %d %d client_size %d %d"), size.x, size.y, client_size.x, client_size.y ); #endif #if 0