From: Martin Kronbichler Date: Wed, 3 Apr 2024 12:01:13 +0000 (+0200) Subject: Pass some SmartPointer variables by reference X-Git-Tag: v9.6.0-rc1~413^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F16845%2Fhead;p=dealii.git Pass some SmartPointer variables by reference --- diff --git a/include/deal.II/non_matching/mapping_info.h b/include/deal.II/non_matching/mapping_info.h index 85b1864bc8..8ed9afbff0 100644 --- a/include/deal.II/non_matching/mapping_info.h +++ b/include/deal.II/non_matching/mapping_info.h @@ -52,16 +52,16 @@ namespace NonMatching public: static UpdateFlags required_update_flags( - const SmartPointer> mapping, - const UpdateFlags &update_flags) + const SmartPointer> &mapping, + const UpdateFlags &update_flags) { return mapping->requires_update_flags(update_flags); } static void compute_mapping_data_for_quadrature( - const SmartPointer> mapping, - const UpdateFlags &update_flags_mapping, + const SmartPointer> &mapping, + const UpdateFlags &update_flags_mapping, const typename Triangulation::cell_iterator &cell, CellSimilarity::Similarity &cell_similarity, const Quadrature &quadrature, @@ -100,8 +100,8 @@ namespace NonMatching static void compute_mapping_data_for_immersed_surface_quadrature( - const SmartPointer> mapping, - const UpdateFlags &update_flags_mapping, + const SmartPointer> &mapping, + const UpdateFlags &update_flags_mapping, const typename Triangulation::cell_iterator &cell, const ImmersedSurfaceQuadrature &quadrature, std::shared_ptr::InternalDataBase> @@ -136,8 +136,8 @@ namespace NonMatching static void compute_mapping_data_for_face_quadrature( - const SmartPointer> mapping, - const UpdateFlags &update_flags_mapping, + const SmartPointer> &mapping, + const UpdateFlags &update_flags_mapping, const typename Triangulation::cell_iterator &cell, const unsigned int face_no, const Quadrature &quadrature,