Muting Coverity report.

This commit is contained in:
Maciej Suminski 2015-07-07 18:37:03 +02:00
parent 4661e39e08
commit f2785d35bf
4 changed files with 14 additions and 4 deletions

View File

@ -331,6 +331,7 @@ bool CollideShapes( const SHAPE* aA, const SHAPE* aB, int aClearance, bool aNeed
default: default:
break; break;
} }
break;
case SH_CIRCLE: case SH_CIRCLE:
switch( aB->Type() ) switch( aB->Type() )
@ -353,6 +354,7 @@ bool CollideShapes( const SHAPE* aA, const SHAPE* aB, int aClearance, bool aNeed
default: default:
break; break;
} }
break;
case SH_LINE_CHAIN: case SH_LINE_CHAIN:
switch( aB->Type() ) switch( aB->Type() )
@ -375,6 +377,7 @@ bool CollideShapes( const SHAPE* aA, const SHAPE* aB, int aClearance, bool aNeed
default: default:
break; break;
} }
break;
case SH_SEGMENT: case SH_SEGMENT:
switch( aB->Type() ) switch( aB->Type() )
@ -397,6 +400,7 @@ bool CollideShapes( const SHAPE* aA, const SHAPE* aB, int aClearance, bool aNeed
default: default:
break; break;
} }
break;
case SH_CONVEX: case SH_CONVEX:
switch( aB->Type() ) switch( aB->Type() )
@ -419,6 +423,7 @@ bool CollideShapes( const SHAPE* aA, const SHAPE* aB, int aClearance, bool aNeed
default: default:
break; break;
} }
break;
default: default:
break; break;

View File

@ -420,12 +420,13 @@ void SHAPE_POLY_SET::fractureSingle( ClipperLib::Paths& paths )
while( num_unconnected > 0 ) while( num_unconnected > 0 )
{ {
int64_t x_min = std::numeric_limits<int64_t>::max(); int64_t x_min = std::numeric_limits<int64_t>::max();
FractureEdge* smallestX; FractureEdge* smallestX = NULL;
// find the left-most hole edge and merge with the outline // find the left-most hole edge and merge with the outline
for( FractureEdgeSet::iterator i = border_edges.begin(); i != border_edges.end(); ++i ) for( FractureEdgeSet::iterator i = border_edges.begin(); i != border_edges.end(); ++i )
{ {
int64_t xt = (*i)->m_p1.X; int64_t xt = (*i)->m_p1.X;
if( ( xt < x_min ) && ! (*i)->m_connected ) if( ( xt < x_min ) && ! (*i)->m_connected )
{ {
x_min = xt; x_min = xt;

View File

@ -992,6 +992,10 @@ PNS_SHOVE::SHOVE_STATUS PNS_SHOVE::ShoveLines( const PNS_LINE& aCurrentHead )
return SH_INCOMPLETE; return SH_INCOMPLETE;
PNS_LINE* head = clone( &aCurrentHead ); PNS_LINE* head = clone( &aCurrentHead );
if( !head )
return SH_INCOMPLETE;
head->ClearSegmentLinks(); head->ClearSegmentLinks();
m_lineStack.clear(); m_lineStack.clear();
@ -1032,7 +1036,7 @@ PNS_SHOVE::SHOVE_STATUS PNS_SHOVE::ShoveLines( const PNS_LINE& aCurrentHead )
st = shoveMainLoop(); st = shoveMainLoop();
if( ( st == SH_OK || st == SH_HEAD_MODIFIED ) && head) if( ( st == SH_OK || st == SH_HEAD_MODIFIED ) )
runOptimizer( m_currentNode, head ); runOptimizer( m_currentNode, head );
if( m_newHead && st == SH_OK ) if( m_newHead && st == SH_OK )