From: Peter Munch Date: Wed, 26 Jul 2023 17:38:36 +0000 (+0200) Subject: AffineConstraints: fix warnings X-Git-Tag: relicensing~638^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a13848c9b94a480ce01e3e14c607ccd24b4c3f93;p=dealii.git AffineConstraints: fix warnings --- 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: