Fix compilation error in ownerdrw sample.
A frame's title parameter is using const wxChar * and is passed a const char * as argument. Use a wxString as parameter to fix the error.
This commit is contained in:
parent
7af8598903
commit
a1902c1456
@ -39,7 +39,7 @@ class OwnerDrawnFrame : public wxFrame
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
// ctor & dtor
|
// 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(){};
|
~OwnerDrawnFrame(){};
|
||||||
|
|
||||||
// notifications
|
// notifications
|
||||||
@ -255,7 +255,7 @@ void OwnerDrawnFrame::InitMenu()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// main frame constructor
|
// 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)
|
int x, int y, int w, int h)
|
||||||
: wxFrame(frame, wxID_ANY, title, wxPoint(x, y), wxSize(w, h))
|
: wxFrame(frame, wxID_ANY, title, wxPoint(x, y), wxSize(w, h))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user