diff --git a/ApplicationLibCode/ModelVisualization/Intersections/RivEnclosingPolygonGenerator.cpp b/ApplicationLibCode/ModelVisualization/Intersections/RivEnclosingPolygonGenerator.cpp index a5ab2fb01e8..4e538b3a095 100644 --- a/ApplicationLibCode/ModelVisualization/Intersections/RivEnclosingPolygonGenerator.cpp +++ b/ApplicationLibCode/ModelVisualization/Intersections/RivEnclosingPolygonGenerator.cpp @@ -85,7 +85,7 @@ cvf::uint PolygonVertexWelder::locateVertexInPolygon( const cvf::Vec3d& vertex ) while ( currentIndex != cvf::UNDEFINED_UINT ) { // Weld point within tolerance - float distanceSquared = ( m_vertex[currentIndex] - vertex ).lengthSquared(); + const auto distanceSquared = ( m_vertex[currentIndex] - vertex ).lengthSquared(); if ( distanceSquared < m_epsilonSquared ) { return currentIndex; diff --git a/ApplicationLibCode/ModelVisualization/Intersections/RivPolylineIntersectionGeometryGenerator.h b/ApplicationLibCode/ModelVisualization/Intersections/RivPolylineIntersectionGeometryGenerator.h index 92eed9f1dad..986696ca435 100644 --- a/ApplicationLibCode/ModelVisualization/Intersections/RivPolylineIntersectionGeometryGenerator.h +++ b/ApplicationLibCode/ModelVisualization/Intersections/RivPolylineIntersectionGeometryGenerator.h @@ -74,7 +74,7 @@ class RivPolylineIntersectionGeometryGenerator const cvf::Vec3d& endPoint, const cvf::Vec3d& heightVector, const double topDepth, - const double bottomDepth ); + const double bottomDepth ); static std::vector initializePolylineUtmFromPolylineUtmXy( const std::vector& polylineUtmXy );