From 643898c5e28de62a77637169b9ee9877c97999f2 Mon Sep 17 00:00:00 2001 From: Joachim Schoeberl Date: Thu, 2 Jan 2025 20:51:11 +0100 Subject: [PATCH] avoid shared ptr copy --- libsrc/meshing/meshclass.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsrc/meshing/meshclass.hpp b/libsrc/meshing/meshclass.hpp index f89dddc1..4e05dbf2 100644 --- a/libsrc/meshing/meshclass.hpp +++ b/libsrc/meshing/meshclass.hpp @@ -507,7 +507,7 @@ namespace netgen /// LocalH & LocalHFunction (int layer=1) { return * lochfunc[layer-1]; } - shared_ptr GetLocalH(int layer=1) const + shared_ptr & GetLocalH(int layer=1) const { if(lochfunc.Size() == 1) return lochfunc[0];