From adb8210f5ab379eff7bcd898ac53532cb2ff9e38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mael=20Rouxel-Labb=C3=A9?= Date: Mon, 6 Apr 2020 21:45:32 +0200 Subject: [PATCH] Integrate variable in loop --- Convex_hull_d/include/CGAL/Delaunay_d.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Convex_hull_d/include/CGAL/Delaunay_d.h b/Convex_hull_d/include/CGAL/Delaunay_d.h index dbb49648ecc..22dbd00861b 100644 --- a/Convex_hull_d/include/CGAL/Delaunay_d.h +++ b/Convex_hull_d/include/CGAL/Delaunay_d.h @@ -822,8 +822,7 @@ locate(const Point_d& x) const lifted_kernel().lift_to_paraboloid_d_object();; Lifted_point_d lp = lift(x); if ( is_dimension_jump(lp) ) { - Simplex_iterator s; - for (s = const_cast(this)->simplices_begin(NEAREST); + for (Simplex_iterator s = const_cast(this)->simplices_begin(NEAREST); s != const_cast(this)->simplices_end(); ++s) if ( contains(s,x) ) return s; return Simplex_handle();