Fix harmless warning in ownerdrw sample.

Don't define an unused variable.

Also don't use wxT() unnecessarily.

This is the backport of cd6fb7a9bd and
a1902c1456 from master.
This commit is contained in:
Vadim Zeitlin
2015-04-17 13:31:24 +02:00
parent 210040016e
commit f3fb8fa7c6

View File

@@ -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
@@ -92,9 +92,7 @@ bool OwnerDrawnApp::OnInit(void)
if ( !wxApp::OnInit() )
return false;
OwnerDrawnFrame *pFrame
= new OwnerDrawnFrame(NULL, wxT("wxWidgets Ownerdraw Sample"),
50, 50, 450, 340);
new OwnerDrawnFrame(NULL, "wxWidgets Ownerdraw Sample", 50, 50, 450, 340);
return true;
}
@@ -257,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))
{