From 24e485039dd9afb91d9f41cbcea5b351902d0727 Mon Sep 17 00:00:00 2001 From: David Wells Date: Sun, 16 Dec 2018 17:13:07 -0500 Subject: [PATCH] Pass by const reference instead of const value. Caught by coverity. --- examples/step-28/step-28.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/step-28/step-28.cc b/examples/step-28/step-28.cc index a7e4d6b35d..f0e6b763e3 100644 --- a/examples/step-28/step-28.cc +++ b/examples/step-28/step-28.cc @@ -517,7 +517,7 @@ namespace Step28 const EnergyGroup & g_prime, const typename DoFHandler::cell_iterator &cell_g, const typename DoFHandler::cell_iterator &cell_g_prime, - const FullMatrix prolongation_matrix); + const FullMatrix & prolongation_matrix); }; @@ -849,7 +849,7 @@ namespace Step28 const EnergyGroup & g_prime, const typename DoFHandler::cell_iterator &cell_g, const typename DoFHandler::cell_iterator &cell_g_prime, - const FullMatrix prolongation_matrix) + const FullMatrix & prolongation_matrix) { // The first case is that both cells are no further refined. In that case, // we can assemble the relevant terms (see the introduction). This -- 2.39.5