From 3aaaa100c583d30b6858336b2fec00cfdb568690 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mael=20Rouxel-Labb=C3=A9?= Date: Sat, 20 Mar 2021 17:44:39 +0100 Subject: [PATCH] Modernize calls to push_back --- .../include/CGAL/Delaunay_triangulation_on_sphere_2.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Triangulation_on_sphere_2/include/CGAL/Delaunay_triangulation_on_sphere_2.h b/Triangulation_on_sphere_2/include/CGAL/Delaunay_triangulation_on_sphere_2.h index 33101e4857e..9d6d449cd41 100644 --- a/Triangulation_on_sphere_2/include/CGAL/Delaunay_triangulation_on_sphere_2.h +++ b/Triangulation_on_sphere_2/include/CGAL/Delaunay_triangulation_on_sphere_2.h @@ -156,7 +156,7 @@ private: std::pair pit) const { std::stack > stack; - stack.push(std::make_pair(fh, i)); + stack.emplace(fh, i); while(!stack.empty()) { @@ -175,8 +175,8 @@ private: // In the non-recursive version, we walk via 'ccw(j)' first. Here, we are filling the stack // and the order is thus the opposite (we want the top element of the stack to be 'ccw(j)') - stack.push(std::make_pair(fn, cw(j))); - stack.push(std::make_pair(fn, ccw(j))); + stack.emplace(fn, cw(j)); + stack.emplace(fn, ccw(j)); } }