From 17729a8caac2407235c00bce4eccbacf94aa953e Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Mon, 7 Jan 2019 12:00:04 +0100 Subject: [PATCH] Use range-based for loops in include/hp --- include/deal.II/hp/fe_collection.h | 2 +- include/deal.II/hp/q_collection.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); } -- 2.39.5