#1292 Fixed CppCheck Issues in ReservoirDataModel

This commit is contained in:
Magne Sjaastad
2017-03-06 11:58:07 +01:00
parent 3a1991d37d
commit 0bccc883ff
22 changed files with 36 additions and 37 deletions

View File

@@ -245,14 +245,12 @@ bool GeometryTools::calculateOverlapPolygonOfTwoQuads(std::vector<IndexType> * p
for (cv1Idx = 0 ; cv1Idx < 4 ; ++cv1Idx)
{
bool found = false;
for (cv2Idx = 0; cv2Idx < 4; ++cv2Idx)
{
if (cv1CubeFaceIndices[cv1Idx] == cv2CubeFaceIndices[cv2Idx])
{
cv1VxTouchCv2[cv1Idx] = true;
cv2VxTouchCv1[cv2Idx] = true;
found = true;
++numMatchedNodes;
continue;
}