summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2023-08-05 17:44:47 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2023-08-05 17:44:47 +0100
commit8f3ddf449bc8a9174f9b29483dc5bcb55a28b8f4 (patch)
tree3e62f8274e58831659cf7c496dc565fe4b3fea7c
parentModernize XML specific tests (diff)
downloadslicer-8f3ddf449bc8a9174f9b29483dc5bcb55a28b8f4.tar.bz2
slicer-8f3ddf449bc8a9174f9b29483dc5bcb55a28b8f4.tar.xz
slicer-8f3ddf449bc8a9174f9b29483dc5bcb55a28b8f4.zip
Fix constref correctness for shared_ptr parameter in ChildHandler
-rw-r--r--slicer/slicer/modelParts.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/slicer/slicer/modelParts.h b/slicer/slicer/modelParts.h
index e5e323f..d0a1f06 100644
--- a/slicer/slicer/modelParts.h
+++ b/slicer/slicer/modelParts.h
@@ -80,7 +80,7 @@ namespace Slicer {
using ModelPartPtr = std::shared_ptr<ModelPart>;
using ModelPartForRootPtr = std::shared_ptr<ModelPartForRootBase>;
using TypeId = std::optional<std::string>;
- using ChildHandler = std::function<void(const std::string &, ModelPartPtr, const HookCommon *)>;
+ using ChildHandler = std::function<void(const std::string &, const ModelPartPtr &, const HookCommon *)>;
using ClassRef = std::function<ModelPartPtr(void *)>;
using HookFilter = std::function<bool(const HookCommon *)>;
using Metadata = MetaData<>;