From: Daniel Arndt Date: Mon, 7 Jan 2019 11:00:04 +0000 (+0100) Subject: Use range-based for loops in include/hp X-Git-Tag: v9.1.0-rc1~446^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F7586%2Fhead;p=dealii.git Use range-based for loops in include/hp --- diff --git a/include/deal.II/hp/fe_collection.h b/include/deal.II/hp/fe_collection.h index c078660001..a58bef7ea2 100644 --- a/include/deal.II/hp/fe_collection.h +++ b/include/deal.II/hp/fe_collection.h @@ -595,7 +595,7 @@ namespace hp // this collection. Inlining the definition of fe_pointers causes internal // compiler errors on GCC 7.1.1 so we define it separately: const auto fe_pointers = {&fes...}; - for (auto p : fe_pointers) + for (const auto p : fe_pointers) push_back(*p); } diff --git a/include/deal.II/hp/q_collection.h b/include/deal.II/hp/q_collection.h index 3534cb4238..4a93015aa2 100644 --- a/include/deal.II/hp/q_collection.h +++ b/include/deal.II/hp/q_collection.h @@ -157,7 +157,7 @@ namespace hp // this collection. Inlining the definition of q_pointers causes internal // compiler errors on GCC 7.1.1 so we define it separately: const auto q_pointers = {&quadrature_objects...}; - for (auto p : q_pointers) + for (const auto p : q_pointers) push_back(*p); }