diff --git a/samples/ownerdrw/ownerdrw.cpp b/samples/ownerdrw/ownerdrw.cpp index fb720147bd..0678887faf 100644 --- a/samples/ownerdrw/ownerdrw.cpp +++ b/samples/ownerdrw/ownerdrw.cpp @@ -39,7 +39,7 @@ class OwnerDrawnFrame : public wxFrame { public: // ctor & dtor - OwnerDrawnFrame(wxFrame *frame, const wxChar *title, int x, int y, int w, int h); + OwnerDrawnFrame(wxFrame *frame, const wxString& title, int x, int y, int w, int h); ~OwnerDrawnFrame(){}; // notifications @@ -255,7 +255,7 @@ void OwnerDrawnFrame::InitMenu() } // main frame constructor -OwnerDrawnFrame::OwnerDrawnFrame(wxFrame *frame, const wxChar *title, +OwnerDrawnFrame::OwnerDrawnFrame(wxFrame *frame, const wxString& title, int x, int y, int w, int h) : wxFrame(frame, wxID_ANY, title, wxPoint(x, y), wxSize(w, h)) {