Fixed wx2.8 strings compatibility.
This commit is contained in:
parent
179807922d
commit
fc4f9195b6
|
@ -1053,8 +1053,8 @@ void CALLBACK ErrorCallback( GLenum aErrorCode )
|
||||||
{
|
{
|
||||||
const GLubyte* eString = gluErrorString( aErrorCode );
|
const GLubyte* eString = gluErrorString( aErrorCode );
|
||||||
|
|
||||||
DisplayError( NULL, wxString( std::string( "Tessellation error: " ) +
|
DisplayError( NULL, wxT( "Tessellation error: " ) +
|
||||||
std::string( (const char*)( eString ) ) ) );
|
wxString( (const char*)( eString ), wxConvUTF8 ) );
|
||||||
|
|
||||||
exit( 1 );
|
exit( 1 );
|
||||||
}
|
}
|
||||||
|
|
|
@ -139,8 +139,8 @@ void TOOL_MANAGER::RegisterTool( TOOL_BASE* aTool )
|
||||||
{
|
{
|
||||||
if( !static_cast<TOOL_INTERACTIVE*>( aTool )->Init() )
|
if( !static_cast<TOOL_INTERACTIVE*>( aTool )->Init() )
|
||||||
{
|
{
|
||||||
DisplayError( NULL, wxString( std::string( "Initialization of the %s tool failed" ) +
|
DisplayError( NULL, wxT( "Initialization of the %s tool failed" ) +
|
||||||
aTool->GetName() ) );
|
wxString( aTool->GetName().c_str(), wxConvUTF8 ) );
|
||||||
|
|
||||||
// Unregister the tool
|
// Unregister the tool
|
||||||
m_toolState.erase( aTool );
|
m_toolState.erase( aTool );
|
||||||
|
|
Loading…
Reference in New Issue