From 8a53e00155adf596c214b520b727b60b4c68eb0b Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Fri, 15 May 2020 15:27:02 +0100 Subject: [PATCH] polish --- Triangulation_2/include/CGAL/Constrained_triangulation_2.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Triangulation_2/include/CGAL/Constrained_triangulation_2.h b/Triangulation_2/include/CGAL/Constrained_triangulation_2.h index 50c2d76c452..fde9ea2365a 100644 --- a/Triangulation_2/include/CGAL/Constrained_triangulation_2.h +++ b/Triangulation_2/include/CGAL/Constrained_triangulation_2.h @@ -665,8 +665,8 @@ insert(const Point& a, Locate_type lt, Face_handle loc, int li) it != finite_edges_end(); ++it){ if(is_constrained(*it)){ - constrained_edges.push_back(std::make_pair(it->first->vertex(cw(it->second)), - it->first->vertex(ccw(it->second)))); + constrained_edges.emplace_back(it->first->vertex(cw(it->second)), + it->first->vertex(ccw(it->second))); } } } @@ -683,7 +683,7 @@ insert(const Point& a, Locate_type lt, Face_handle loc, int li) va = Triangulation::insert(a,lt,loc,li); if(one_dimensional && (dimension() == 2)){ - for(const std::pair vp : constrained_edges){ + for(const std::pair& vp : constrained_edges){ Face_handle fh; int i; if(this->is_edge(vp.first, vp.second, fh,i)){