From 6f169d478de9b25b6c7ab2cb835899cbcb0288c9 Mon Sep 17 00:00:00 2001 From: Luca Heltai Date: Fri, 15 May 2015 00:17:19 +0200 Subject: [PATCH] Made dist const. --- source/opencascade/boundary_lib.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/opencascade/boundary_lib.cc b/source/opencascade/boundary_lib.cc index af0909cddf..cb077f15a7 100644 --- a/source/opencascade/boundary_lib.cc +++ b/source/opencascade/boundary_lib.cc @@ -235,7 +235,7 @@ namespace OpenCASCADE double t (0.0); ShapeAnalysis_Curve curve_analysis; gp_Pnt proj; - double dist = curve_analysis.Project(curve->GetCurve(), point(space_point), tolerance, proj, t, true); + const double dist = curve_analysis.Project(curve->GetCurve(), point(space_point), tolerance, proj, t, true); Assert(dist < tolerance*length, ExcPointNotOnManifold(space_point)); (void)dist; // Silence compiler warning in Release mode. return Point<1>(GCPnts_AbscissaPoint::Length(curve->GetCurve(),curve->GetCurve().FirstParameter(),t)); -- 2.39.5