fix coding policy violations

This commit is contained in:
Thomas Pointhuber 2023-08-18 14:51:33 +02:00
parent c2a91caacf
commit f7f8bf5418
2 changed files with 6 additions and 3 deletions

View File

@ -626,7 +626,8 @@ bool PCB_EDIT_FRAME::OpenProjectFiles( const std::vector<wxString>& aFileSet, in
try try
{ {
if (pi == nullptr) { if( pi == nullptr )
{
// There was no plugin found, e.g. due to invalid file extension, file header,... // There was no plugin found, e.g. due to invalid file extension, file header,...
THROW_IO_ERROR( _( "File format is not supported" ) ); THROW_IO_ERROR( _( "File format is not supported" ) );
} }

View File

@ -2089,7 +2089,8 @@ void ALTIUM_PCB::ConvertShapeBasedRegions6ToBoardItemOnLayer( const AREGION6& aE
shape->SetLayer( aLayer ); shape->SetLayer( aLayer );
shape->SetStroke( STROKE_PARAMS( 0 ) ); shape->SetStroke( STROKE_PARAMS( 0 ) );
if( IsCopperLayer( aLayer ) && aElem.net != ALTIUM_NET_UNCONNECTED ) { if( IsCopperLayer( aLayer ) && aElem.net != ALTIUM_NET_UNCONNECTED )
{
shape->SetNetCode( GetNetCode( aElem.net ) ); shape->SetNetCode( GetNetCode( aElem.net ) );
} }
@ -3434,7 +3435,8 @@ void ALTIUM_PCB::ConvertFills6ToBoardItemOnLayer( const AFILL6& aElem, PCB_LAYER
fill->SetStart( aElem.pos1 ); fill->SetStart( aElem.pos1 );
fill->SetEnd( aElem.pos2 ); fill->SetEnd( aElem.pos2 );
if( IsCopperLayer( aLayer ) && aElem.net != ALTIUM_NET_UNCONNECTED ) { if( IsCopperLayer( aLayer ) && aElem.net != ALTIUM_NET_UNCONNECTED )
{
fill->SetNetCode( GetNetCode( aElem.net ) ); fill->SetNetCode( GetNetCode( aElem.net ) );
} }