From: Wolfgang Bangerth Date: Tue, 29 Nov 2022 15:43:48 +0000 (-0700) Subject: Don't make copies of expensive objects. X-Git-Tag: v9.5.0-rc1~794^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F14492%2Fhead;p=dealii.git Don't make copies of expensive objects. --- diff --git a/source/dofs/dof_renumbering.cc b/source/dofs/dof_renumbering.cc index 3486224312..c80b473594 100644 --- a/source/dofs/dof_renumbering.cc +++ b/source/dofs/dof_renumbering.cc @@ -759,8 +759,8 @@ namespace DoFRenumbering const std::vector &component_order_arg, const bool is_level_operation) { - const hp::FECollection fe_collection( - start->get_dof_handler().get_fe_collection()); + const hp::FECollection &fe_collection = + start->get_dof_handler().get_fe_collection(); // do nothing if the FE has only // one component @@ -1072,8 +1072,8 @@ namespace DoFRenumbering const ENDITERATOR & end, const bool is_level_operation) { - const hp::FECollection fe_collection( - start->get_dof_handler().get_fe_collection()); + const hp::FECollection &fe_collection = + start->get_dof_handler().get_fe_collection(); // do nothing if the FE has only // one component