Fix harmless warning in ownerdrw sample.
Don't define an unused variable. Also don't use wxT() unnecessarily. This is the backport ofcd6fb7a9bd
anda1902c1456
from master.
This commit is contained in:
@@ -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
|
||||||
@@ -92,9 +92,7 @@ bool OwnerDrawnApp::OnInit(void)
|
|||||||
if ( !wxApp::OnInit() )
|
if ( !wxApp::OnInit() )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
OwnerDrawnFrame *pFrame
|
new OwnerDrawnFrame(NULL, "wxWidgets Ownerdraw Sample", 50, 50, 450, 340);
|
||||||
= new OwnerDrawnFrame(NULL, wxT("wxWidgets Ownerdraw Sample"),
|
|
||||||
50, 50, 450, 340);
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -257,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))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user