From: Wolfgang Bangerth Date: Sun, 4 Jun 2023 02:46:29 +0000 (-0600) Subject: Avoid taking references on temporaries. X-Git-Tag: v9.5.0-rc1~159^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F15299%2Fhead;p=dealii.git Avoid taking references on temporaries. --- diff --git a/examples/step-70/step-70.cc b/examples/step-70/step-70.cc index c3f935cb5d..a1f7ed2ab1 100644 --- a/examples/step-70/step-70.cc +++ b/examples/step-70/step-70.cc @@ -1479,9 +1479,9 @@ namespace Step70 Assert(pic.begin() == particle, ExcInternalError()); for (const auto &p : pic) { - const auto &ref_q = p.get_reference_location(); - const auto &real_q = p.get_location(); - const auto &JxW = p.get_properties()[0]; + const Point ref_q = p.get_reference_location(); + const Point real_q = p.get_location(); + const double JxW = p.get_properties()[0]; for (unsigned int i = 0; i < fluid_fe->n_dofs_per_cell(); ++i) {