More Coverity warnings fixes.

This commit is contained in:
jean-pierre charras 2016-12-30 14:36:23 +01:00
parent dec2d6e8cc
commit a9fbedfb12
3 changed files with 7 additions and 2 deletions

View File

@ -605,6 +605,9 @@ mpFXY::mpFXY( wxString name, int flags )
m_type = mpLAYER_PLOT;
m_scaleX = NULL;
m_scaleY = NULL;
// Avoid not initialized members:
maxDrawX = minDrawX = maxDrawY = minDrawY = 0;
}

View File

@ -770,7 +770,9 @@ public:
struct TickLabel
{
TickLabel( double pos_ = 0.0, const wxString& label_ = wxT("") ) :
pos( pos_ ), label( label_ ) {};
pos( pos_ ), label( label_ ), pixelPos( 0 ), visible( true )
{}
double pos;
wxString label;
int pixelPos;

View File

@ -238,7 +238,7 @@ static int find_vias_and_tracks_at( TRACKS& at_next, TRACKS& in_net, LSET& lset,
{
lset |= t->GetLayerSet();
at_next.push_back( t );
in_net.erase( it );
it = in_net.erase( it );
}
else
++it;