From: Wolfgang Bangerth Date: Tue, 5 Jan 2021 17:12:54 +0000 (-0700) Subject: Store value, not reference, in a local variable. X-Git-Tag: v9.3.0-rc1~681^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9432faec011aee78fb56e8c46b57e7d9a1cc84b9;p=dealii.git Store value, not reference, in a local variable. --- diff --git a/include/deal.II/particles/utilities.h b/include/deal.II/particles/utilities.h index e3f3bd6fa3..3b60163226 100644 --- a/include/deal.II/particles/utilities.h +++ b/include/deal.II/particles/utilities.h @@ -233,7 +233,7 @@ namespace Particles Assert(pic.begin() == particle, ExcInternalError()); for (unsigned int i = 0; particle != pic.end(); ++particle, ++i) { - const auto &reference_location = + const Point reference_location = particle->get_reference_location(); const auto id = particle->get_id();