Fix minor compil and Coverity warnings.
This commit is contained in:
parent
6e9516925c
commit
f651e31965
|
@ -61,7 +61,8 @@ std::vector<BOX2D>* g_defaultFontGlyphBoundingBoxes;
|
|||
|
||||
STROKE_FONT::STROKE_FONT() :
|
||||
m_glyphs( nullptr ),
|
||||
m_glyphBoundingBoxes( nullptr )
|
||||
m_glyphBoundingBoxes( nullptr ),
|
||||
m_maxGlyphWidth( 0.0 )
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -225,7 +225,7 @@ void GERBER_LAYER_WIDGET::onPopupSelection( wxCommandEvent& event )
|
|||
case ID_LAYER_MOVE_DOWN:
|
||||
layer = m_frame->GetActiveLayer();
|
||||
|
||||
if( layer < ( GetImagesList()->GetLoadedImageCount() - 1 ) )
|
||||
if( layer < ( (int)GetImagesList()->GetLoadedImageCount() - 1 ) )
|
||||
{
|
||||
m_frame->RemapLayers( GetImagesList()->SwapImages( layer, layer + 1 ) );
|
||||
m_frame->SetActiveLayer( layer + 1 );
|
||||
|
|
|
@ -193,7 +193,7 @@ int TEARDROP_MANAGER::SetTeardrops( BOARD_COMMIT* aCommitter,
|
|||
if( count || removed_cnt || track2trackCount )
|
||||
{
|
||||
ZONE_FILLER filler( m_board, aCommitter );
|
||||
filler.Fill( m_board->Zones() );
|
||||
(void)filler.Fill( m_board->Zones() );
|
||||
|
||||
if( aCommitter )
|
||||
aCommitter->Push( _( "Add teardrops" ) );
|
||||
|
@ -389,7 +389,7 @@ int TEARDROP_MANAGER::RemoveTeardrops( BOARD_COMMIT* aCommitter, bool aCommitAft
|
|||
if( count )
|
||||
{
|
||||
ZONE_FILLER filler( m_board, aCommitter );
|
||||
filler.Fill( m_board->Zones() );
|
||||
(void)filler.Fill( m_board->Zones() );
|
||||
|
||||
if( aCommitter && aCommitAfterRemove )
|
||||
aCommitter->Push( _( "Remove teardrops" ) );
|
||||
|
|
|
@ -402,7 +402,8 @@ bool TEARDROP_MANAGER::ComputePointsOnPadVia( TEARDROP_PARAMETERS* aCurrParams,
|
|||
{
|
||||
// Compute the 2 anchor points on pad/via of the teardrop shape
|
||||
|
||||
PAD* pad = dynamic_cast<PAD*>( aViaPad.m_Parent );
|
||||
PAD* pad = ( aViaPad.m_Parent->Type() == PCB_PAD_T ) ? static_cast<PAD*>(aViaPad.m_Parent)
|
||||
: nullptr;
|
||||
SHAPE_POLY_SET c_buffer;
|
||||
|
||||
// aHeightRatio is the factor to calculate the aViaPad teardrop prefered height
|
||||
|
@ -428,7 +429,7 @@ bool TEARDROP_MANAGER::ComputePointsOnPadVia( TEARDROP_PARAMETERS* aCurrParams,
|
|||
TransformCircleToPolygon( c_buffer, aViaPad.m_Pos, aViaPad.m_Width/2 ,
|
||||
ARC_LOW_DEF, ERROR_INSIDE, 16 );
|
||||
}
|
||||
else
|
||||
else // Only PADS can have a not round shape
|
||||
{
|
||||
wxASSERT( pad );
|
||||
force_clip_shape = true;
|
||||
|
|
Loading…
Reference in New Issue