Remove (most) occurrences of wxT() macro from the samples
Also replace wxChar* with wxString. Closes https://github.com/wxWidgets/wxWidgets/pull/945
This commit is contained in:
committed by
Vadim Zeitlin
parent
e768046774
commit
f58ea62596
@@ -56,7 +56,7 @@ bool MyApp::OnInit()
|
||||
return false;
|
||||
|
||||
// Create the main frame window
|
||||
new MyFrame(NULL, wxT("wxWidgets OpenGL Isosurf Sample"));
|
||||
new MyFrame(NULL, "wxWidgets OpenGL Isosurf Sample");
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -102,9 +102,9 @@ MyFrame::MyFrame(wxFrame *frame, const wxString& title, const wxPoint& pos,
|
||||
// Make a menubar
|
||||
wxMenu *fileMenu = new wxMenu;
|
||||
|
||||
fileMenu->Append(wxID_EXIT, wxT("E&xit"));
|
||||
fileMenu->Append(wxID_EXIT, "E&xit");
|
||||
wxMenuBar *menuBar = new wxMenuBar;
|
||||
menuBar->Append(fileMenu, wxT("&File"));
|
||||
menuBar->Append(fileMenu, "&File");
|
||||
SetMenuBar(menuBar);
|
||||
|
||||
|
||||
@@ -225,7 +225,7 @@ void TestGLCanvas::LoadSurface(const wxString& filename)
|
||||
|
||||
delete stream;
|
||||
|
||||
wxLogMessage(wxT("Loaded %d vertices, %d triangles from '%s'"),
|
||||
wxLogMessage("Loaded %d vertices, %d triangles from '%s'",
|
||||
m_numverts, m_numverts-2, filename.c_str());
|
||||
|
||||
// NOTE: for some reason under wxGTK the following is required to avoid that
|
||||
|
Reference in New Issue
Block a user