mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-10 08:03:05 -06:00
CppCheck : Skip duplicate tests
This commit is contained in:
parent
53c39cdc73
commit
29aa37084a
@ -614,8 +614,7 @@ bool RifSurfaceImporter::generateTriangleIndices( const std::vector<std::vector<
|
|||||||
unsigned q3 = indexToPointData[topI][j + 0];
|
unsigned q3 = indexToPointData[topI][j + 0];
|
||||||
unsigned q4 = indexToPointData[topI][topJ];
|
unsigned q4 = indexToPointData[topI][topJ];
|
||||||
|
|
||||||
if ( q1 != ( (unsigned)-1 ) && q2 != ( (unsigned)-1 ) && q4 != ( (unsigned)-1 ) && q1 != ( (unsigned)-1 ) &&
|
if ( q1 != ( (unsigned)-1 ) && q2 != ( (unsigned)-1 ) && q3 != ( (unsigned)-1 ) && q4 != ( (unsigned)-1 ) )
|
||||||
q4 != ( (unsigned)-1 ) && q3 != ( (unsigned)-1 ) )
|
|
||||||
{
|
{
|
||||||
triangleIndices.push_back( q1 );
|
triangleIndices.push_back( q1 );
|
||||||
triangleIndices.push_back( q2 );
|
triangleIndices.push_back( q2 );
|
||||||
|
Loading…
Reference in New Issue
Block a user