From: David Wells Date: Sun, 16 Dec 2018 22:13:07 +0000 (-0500) Subject: Pass by const reference instead of const value. X-Git-Tag: v9.1.0-rc1~486^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=24e485039dd9afb91d9f41cbcea5b351902d0727;p=dealii.git Pass by const reference instead of const value. Caught by coverity. --- 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