Fix compile issues under some compilers.
This commit is contained in:
parent
3d32ee774e
commit
43899bbe0e
|
@ -737,7 +737,7 @@ void CVPCB_MAINFRAME::UpdateTitle()
|
||||||
{
|
{
|
||||||
title.Printf( _( "Cvpcb" ) + wxT( " \u2014 %s%s" ),
|
title.Printf( _( "Cvpcb" ) + wxT( " \u2014 %s%s" ),
|
||||||
fn.GetFullPath(),
|
fn.GetFullPath(),
|
||||||
fn.IsFileWritable() ? wxEmptyString : _( " [Read Only]" ) );
|
fn.IsFileWritable() ? wxString( wxEmptyString ) : _( " [Read Only]" ) );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -778,7 +778,8 @@ void GERBVIEW_FRAME::UpdateTitleAndInfo()
|
||||||
wxString title;
|
wxString title;
|
||||||
title.Printf( _( "GerbView" ) + wxT( " \u2014 %s%s" ),
|
title.Printf( _( "GerbView" ) + wxT( " \u2014 %s%s" ),
|
||||||
gerber->m_FileName,
|
gerber->m_FileName,
|
||||||
gerber->m_IsX2_file ? _( " (with X2 attributes)" ) : wxEmptyString );
|
gerber->m_IsX2_file ? _( " (with X2 attributes)" )
|
||||||
|
: wxString( wxEmptyString ) );
|
||||||
SetTitle( title );
|
SetTitle( title );
|
||||||
|
|
||||||
gerber->DisplayImageInfo( this );
|
gerber->DisplayImageInfo( this );
|
||||||
|
|
|
@ -799,7 +799,7 @@ void FOOTPRINT_EDIT_FRAME::updateTitle()
|
||||||
wxString title;
|
wxString title;
|
||||||
title.Printf( _( "Footprint Editor" ) + wxT( " \u2014 %s%s%s" ),
|
title.Printf( _( "Footprint Editor" ) + wxT( " \u2014 %s%s%s" ),
|
||||||
nickname_display,
|
nickname_display,
|
||||||
writable ? wxEmptyString : _( " [Read Only]" ),
|
writable ? wxString( wxEmptyString ) : _( " [Read Only]" ),
|
||||||
path_display );
|
path_display );
|
||||||
|
|
||||||
SetTitle( title );
|
SetTitle( title );
|
||||||
|
|
|
@ -1112,7 +1112,7 @@ void PCB_EDIT_FRAME::UpdateTitle()
|
||||||
|
|
||||||
if( fileName.IsOk() && fileName.FileExists() )
|
if( fileName.IsOk() && fileName.FileExists() )
|
||||||
{
|
{
|
||||||
fileinfo = fileName.IsFileWritable() ? wxEmptyString : _( " [Read Only]" );
|
fileinfo = fileName.IsFileWritable() ? wxString( wxEmptyString ) : _( " [Read Only]" );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue