Fix a few Coverity warnings.

This commit is contained in:
jean-pierre charras 2020-07-29 09:21:31 +02:00
parent ad94b6205a
commit f00c59c446
3 changed files with 26 additions and 14 deletions

View File

@ -611,6 +611,11 @@ void BACK_ANNOTATE::processNetNameChange( SCH_CONNECTION* aConn, const wxString&
editMatchingLabels( screen, SCH_HIER_LABEL_T, aOldName, aNewName );
SCH_SHEET* sheet = dynamic_cast<SCH_SHEET*>( driver->GetParent() );
wxASSERT( sheet );
if( !sheet )
break;
screen = sheet->GetScreen();
for( SCH_SHEET_PIN* pin : sheet->GetPins() )

View File

@ -107,6 +107,8 @@ D_PAD::D_PAD( const D_PAD& aOther ) :
SetPos0( aOther.GetPos0() );
SetName( aOther.GetName() );
SetPinFunction( aOther.GetPinFunction() );
SetSubRatsnest( aOther.GetSubRatsnest() );
m_effectiveBoundingRadius = aOther.m_effectiveBoundingRadius;
}
@ -120,6 +122,8 @@ D_PAD& D_PAD::operator=( const D_PAD &aOther )
SetPos0( aOther.GetPos0() );
SetName( aOther.GetName() );
SetPinFunction( aOther.GetPinFunction() );
SetSubRatsnest( aOther.GetSubRatsnest() );
m_effectiveBoundingRadius = aOther.m_effectiveBoundingRadius;
return *this;
}
@ -1241,6 +1245,8 @@ void D_PAD::ImportSettingsFrom( const D_PAD& aMasterPad )
SetThermalWidth( aMasterPad.GetThermalWidth() );
SetThermalGap( aMasterPad.GetThermalGap() );
SetCustomShapeInZoneOpt( aMasterPad.GetCustomShapeInZoneOpt() );
// Add or remove custom pad shapes:
ReplacePrimitives( aMasterPad.GetPrimitives() );
SetAnchorPadShape( aMasterPad.GetAnchorPadShape() );

View File

@ -1515,6 +1515,7 @@ int FIXED_TAIL::StageCount() const
POSTURE_SOLVER::POSTURE_SOLVER()
{
m_forced = false;
m_tollerance = 0;
}
POSTURE_SOLVER::~POSTURE_SOLVER() {}