From c2239924a1888bf8fb7eeb426b54b4ab87bd336b Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Sat, 3 Jun 2023 20:46:29 -0600 Subject: [PATCH] Avoid taking references on temporaries. --- examples/step-70/step-70.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) { -- 2.39.5