From 32ceaac3743d17edc73b281426cd334ab25014e7 Mon Sep 17 00:00:00 2001 From: Marc Fehling Date: Fri, 19 Mar 2021 18:22:58 -0600 Subject: [PATCH] Use manifold iterator range in copy_triangulation(). --- source/grid/tria.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/source/grid/tria.cc b/source/grid/tria.cc index 04b4481073..129d57cfb8 100644 --- a/source/grid/tria.cc +++ b/source/grid/tria.cc @@ -10429,9 +10429,8 @@ Triangulation::copy_triangulation( faces = std::make_unique( *other_tria.faces); - auto bdry_iterator = other_tria.manifold.begin(); - for (; bdry_iterator != other_tria.manifold.end(); ++bdry_iterator) - manifold[bdry_iterator->first] = bdry_iterator->second->clone(); + for (const auto &p : other_tria.manifold) + set_manifold(p.first, *p.second); levels.reserve(other_tria.levels.size()); -- 2.39.5