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" ),
|
||||
fn.GetFullPath(),
|
||||
fn.IsFileWritable() ? wxEmptyString : _( " [Read Only]" ) );
|
||||
fn.IsFileWritable() ? wxString( wxEmptyString ) : _( " [Read Only]" ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -778,7 +778,8 @@ void GERBVIEW_FRAME::UpdateTitleAndInfo()
|
|||
wxString title;
|
||||
title.Printf( _( "GerbView" ) + wxT( " \u2014 %s%s" ),
|
||||
gerber->m_FileName,
|
||||
gerber->m_IsX2_file ? _( " (with X2 attributes)" ) : wxEmptyString );
|
||||
gerber->m_IsX2_file ? _( " (with X2 attributes)" )
|
||||
: wxString( wxEmptyString ) );
|
||||
SetTitle( title );
|
||||
|
||||
gerber->DisplayImageInfo( this );
|
||||
|
|
|
@ -799,7 +799,7 @@ void FOOTPRINT_EDIT_FRAME::updateTitle()
|
|||
wxString title;
|
||||
title.Printf( _( "Footprint Editor" ) + wxT( " \u2014 %s%s%s" ),
|
||||
nickname_display,
|
||||
writable ? wxEmptyString : _( " [Read Only]" ),
|
||||
writable ? wxString( wxEmptyString ) : _( " [Read Only]" ),
|
||||
path_display );
|
||||
|
||||
SetTitle( title );
|
||||
|
|
|
@ -1112,7 +1112,7 @@ void PCB_EDIT_FRAME::UpdateTitle()
|
|||
|
||||
if( fileName.IsOk() && fileName.FileExists() )
|
||||
{
|
||||
fileinfo = fileName.IsFileWritable() ? wxEmptyString : _( " [Read Only]" );
|
||||
fileinfo = fileName.IsFileWritable() ? wxString( wxEmptyString ) : _( " [Read Only]" );
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue