mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-12 16:32:12 -05:00
CppCheck : Skip duplicate tests
This commit is contained in:
1 parent
53c39cdc73
commit
29aa37084a
1 file changed
+1
-2
@@ -614,8 +614,7 @@ bool RifSurfaceImporter::generateTriangleIndices( const std::vector<std::vector<
|
||||
unsigned q3 = indexToPointData[topI][j + 0];
|
||||
unsigned q4 = indexToPointData[topI][topJ];
|
||||
|
||||
if ( q1 != ( (unsigned)-1 ) && q2 != ( (unsigned)-1 ) && q4 != ( (unsigned)-1 ) && q1 != ( (unsigned)-1 ) &&
|
||||
q4 != ( (unsigned)-1 ) && q3 != ( (unsigned)-1 ) )
|
||||
if ( q1 != ( (unsigned)-1 ) && q2 != ( (unsigned)-1 ) && q3 != ( (unsigned)-1 ) && q4 != ( (unsigned)-1 ) )
|
||||
{
|
||||
triangleIndices.push_back( q1 );
|
||||
triangleIndices.push_back( q2 );
|
||||
|
||||
Reference in new issue
Block a user