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
				
			@@ -66,20 +66,20 @@ static void CheckGLError()
 | 
			
		||||
        // so check that we get a different error than the last time
 | 
			
		||||
        if ( err == errLast )
 | 
			
		||||
        {
 | 
			
		||||
            wxLogError(wxT("OpenGL error state couldn't be reset."));
 | 
			
		||||
            wxLogError("OpenGL error state couldn't be reset.");
 | 
			
		||||
            return;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        errLast = err;
 | 
			
		||||
 | 
			
		||||
        wxLogError(wxT("OpenGL error %d"), err);
 | 
			
		||||
        wxLogError("OpenGL error %d", err);
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// function to draw the texture for cube faces
 | 
			
		||||
static wxImage DrawDice(int size, unsigned num)
 | 
			
		||||
{
 | 
			
		||||
    wxASSERT_MSG( num >= 1 && num <= 6, wxT("invalid dice index") );
 | 
			
		||||
    wxASSERT_MSG( num >= 1 && num <= 6, "invalid dice index" );
 | 
			
		||||
 | 
			
		||||
    const int dot = size/16;        // radius of a single dot
 | 
			
		||||
    const int gap = 5*size/32;      // gap between dots
 | 
			
		||||
@@ -459,7 +459,7 @@ wxBEGIN_EVENT_TABLE(MyFrame, wxFrame)
 | 
			
		||||
wxEND_EVENT_TABLE()
 | 
			
		||||
 | 
			
		||||
MyFrame::MyFrame( bool stereoWindow )
 | 
			
		||||
       : wxFrame(NULL, wxID_ANY, wxT("wxWidgets OpenGL Cube Sample"))
 | 
			
		||||
       : wxFrame(NULL, wxID_ANY, "wxWidgets OpenGL Cube Sample")
 | 
			
		||||
{
 | 
			
		||||
    int stereoAttribList[] = { WX_GL_RGBA, WX_GL_DOUBLEBUFFER, WX_GL_STEREO, 0 };
 | 
			
		||||
 | 
			
		||||
@@ -474,7 +474,7 @@ MyFrame::MyFrame( bool stereoWindow )
 | 
			
		||||
    menu->AppendSeparator();
 | 
			
		||||
    menu->Append(wxID_CLOSE);
 | 
			
		||||
    wxMenuBar *menuBar = new wxMenuBar;
 | 
			
		||||
    menuBar->Append(menu, wxT("&Cube"));
 | 
			
		||||
    menuBar->Append(menu, "&Cube");
 | 
			
		||||
 | 
			
		||||
    SetMenuBar(menuBar);
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user