Fixes by clang-tidy

This commit is contained in:
magnesj 2024-01-13 02:07:53 +00:00 committed by Magne Sjaastad
parent 9dfe155c5a
commit 340c1383fc

View File

@ -907,9 +907,7 @@ bool RigCellGeometryTools::lineIntersectsPolygon2D( const cvf::Vec3d a, const cv
if ( lineIntersectsLine2D( a, b, polygon[i - 1], polygon[i] ) ) return true;
}
if ( lineIntersectsLine2D( a, b, polygon[nPolyLines - 1], polygon[0] ) ) return true;
return false;
return lineIntersectsLine2D( a, b, polygon[nPolyLines - 1], polygon[0] );
}
//--------------------------------------------------------------------------------------------------