More Coverity warnings fixes.
This commit is contained in:
parent
dec2d6e8cc
commit
a9fbedfb12
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue