From a13848c9b94a480ce01e3e14c607ccd24b4c3f93 Mon Sep 17 00:00:00 2001 From: Peter Munch Date: Wed, 26 Jul 2023 19:38:36 +0200 Subject: [PATCH] AffineConstraints: fix warnings --- include/deal.II/lac/affine_constraints.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/deal.II/lac/affine_constraints.h b/include/deal.II/lac/affine_constraints.h index 4b5ed6ed35..f1cd91d159 100644 --- a/include/deal.II/lac/affine_constraints.h +++ b/include/deal.II/lac/affine_constraints.h @@ -2524,8 +2524,7 @@ AffineConstraints::merge( const number weight = entry.second; - for (const std::pair &other_entry : - *other_entries) + for (const auto &other_entry : *other_entries) tmp.emplace_back(other_entry.first, other_entry.second * weight); @@ -2600,7 +2599,7 @@ AffineConstraints::merge( line.index, typename ConstraintLine::Entries(line.entries.begin(), line.entries.end()), - line.inhomogeneity}; + static_cast(line.inhomogeneity)}; break; default: -- 2.39.5