Fix a few Coverity warnings.
This commit is contained in:
parent
ad94b6205a
commit
f00c59c446
|
@ -611,6 +611,11 @@ void BACK_ANNOTATE::processNetNameChange( SCH_CONNECTION* aConn, const wxString&
|
||||||
editMatchingLabels( screen, SCH_HIER_LABEL_T, aOldName, aNewName );
|
editMatchingLabels( screen, SCH_HIER_LABEL_T, aOldName, aNewName );
|
||||||
|
|
||||||
SCH_SHEET* sheet = dynamic_cast<SCH_SHEET*>( driver->GetParent() );
|
SCH_SHEET* sheet = dynamic_cast<SCH_SHEET*>( driver->GetParent() );
|
||||||
|
wxASSERT( sheet );
|
||||||
|
|
||||||
|
if( !sheet )
|
||||||
|
break;
|
||||||
|
|
||||||
screen = sheet->GetScreen();
|
screen = sheet->GetScreen();
|
||||||
|
|
||||||
for( SCH_SHEET_PIN* pin : sheet->GetPins() )
|
for( SCH_SHEET_PIN* pin : sheet->GetPins() )
|
||||||
|
|
|
@ -107,6 +107,8 @@ D_PAD::D_PAD( const D_PAD& aOther ) :
|
||||||
SetPos0( aOther.GetPos0() );
|
SetPos0( aOther.GetPos0() );
|
||||||
SetName( aOther.GetName() );
|
SetName( aOther.GetName() );
|
||||||
SetPinFunction( aOther.GetPinFunction() );
|
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() );
|
SetPos0( aOther.GetPos0() );
|
||||||
SetName( aOther.GetName() );
|
SetName( aOther.GetName() );
|
||||||
SetPinFunction( aOther.GetPinFunction() );
|
SetPinFunction( aOther.GetPinFunction() );
|
||||||
|
SetSubRatsnest( aOther.GetSubRatsnest() );
|
||||||
|
m_effectiveBoundingRadius = aOther.m_effectiveBoundingRadius;
|
||||||
|
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
@ -1241,6 +1245,8 @@ void D_PAD::ImportSettingsFrom( const D_PAD& aMasterPad )
|
||||||
SetThermalWidth( aMasterPad.GetThermalWidth() );
|
SetThermalWidth( aMasterPad.GetThermalWidth() );
|
||||||
SetThermalGap( aMasterPad.GetThermalGap() );
|
SetThermalGap( aMasterPad.GetThermalGap() );
|
||||||
|
|
||||||
|
SetCustomShapeInZoneOpt( aMasterPad.GetCustomShapeInZoneOpt() );
|
||||||
|
|
||||||
// Add or remove custom pad shapes:
|
// Add or remove custom pad shapes:
|
||||||
ReplacePrimitives( aMasterPad.GetPrimitives() );
|
ReplacePrimitives( aMasterPad.GetPrimitives() );
|
||||||
SetAnchorPadShape( aMasterPad.GetAnchorPadShape() );
|
SetAnchorPadShape( aMasterPad.GetAnchorPadShape() );
|
||||||
|
|
|
@ -1515,6 +1515,7 @@ int FIXED_TAIL::StageCount() const
|
||||||
POSTURE_SOLVER::POSTURE_SOLVER()
|
POSTURE_SOLVER::POSTURE_SOLVER()
|
||||||
{
|
{
|
||||||
m_forced = false;
|
m_forced = false;
|
||||||
|
m_tollerance = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
POSTURE_SOLVER::~POSTURE_SOLVER() {}
|
POSTURE_SOLVER::~POSTURE_SOLVER() {}
|
||||||
|
|
Loading…
Reference in New Issue