pass variable property_handle by const reference

This commit is contained in:
Alexandra Heuschling
2021-01-16 17:09:59 +01:00
parent c1cb10c178
commit 830fc2554c

View File

@@ -619,7 +619,7 @@ public:
using value_type = typename PropertyT::value_type; using value_type = typename PropertyT::value_type;
using Handle = typename PropertyT::Handle; using Handle = typename PropertyT::Handle;
ConstPropertyViewer(const PolyConnectivity& mesh, PropertyT property_handle) ConstPropertyViewer(const PolyConnectivity& mesh, const PropertyT& property_handle)
: :
mesh_(mesh), mesh_(mesh),
prop_(property_handle) prop_(property_handle)