pcbnew: fix build in linux gcc-4.5.2

This commit is contained in:
Andrey Fedorushkov 2013-03-02 20:32:05 +04:00
parent e4f72171f5
commit 02b5b477da
2 changed files with 2 additions and 2 deletions

View File

@ -1303,7 +1303,7 @@ void PCB_IO::format( ZONE_CONTAINER* aZone, int aNestLevel ) const
// (perhaps netcode and netname should be not stored)
m_out->Print( aNestLevel, "(zone (net %d) (net_name %s)",
aZone->GetIsKeepout() ? 0 : aZone->GetNet(),
m_out->Quotew( aZone->GetIsKeepout() ? "" : aZone->GetNetName() ).c_str() );
m_out->Quotew( aZone->GetIsKeepout() ? wxT("") : aZone->GetNetName() ).c_str() );
formatLayer( aZone );

View File

@ -3613,7 +3613,7 @@ void LEGACY_PLUGIN::saveZONE_CONTAINER( const ZONE_CONTAINER* me ) const
fprintf( m_fp, "ZInfo %lX %d %s\n",
me->GetTimeStamp(),
me->GetIsKeepout() ? 0 : me->GetNet(),
EscapedUTF8( me->GetIsKeepout() ? "" : me->GetNetName() ).c_str() );
EscapedUTF8( me->GetIsKeepout() ? wxT("") : me->GetNetName() ).c_str() );
// Save the outline layer info
fprintf( m_fp, "ZLayer %d\n", me->GetLayer() );