]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Made dist const. 933/head
authorLuca Heltai <luca.heltai@sissa.it>
Thu, 14 May 2015 22:17:19 +0000 (00:17 +0200)
committerLuca Heltai <luca.heltai@sissa.it>
Thu, 14 May 2015 22:17:19 +0000 (00:17 +0200)
source/opencascade/boundary_lib.cc

index af0909cddfc2826b8ef503c509bab23d226d8876..cb077f15a7406279af6755842226f0c3f146448f 100644 (file)
@@ -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));

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.