From: Marc Fehling Date: Sat, 20 Mar 2021 00:22:58 +0000 (-0600) Subject: Use manifold iterator range in copy_triangulation(). X-Git-Tag: v9.3.0-rc1~293^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32ceaac3743d17edc73b281426cd334ab25014e7;p=dealii.git Use manifold iterator range in copy_triangulation(). --- 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());