diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-08-05 17:44:47 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-08-05 17:44:47 +0100 |
commit | 8f3ddf449bc8a9174f9b29483dc5bcb55a28b8f4 (patch) | |
tree | 3e62f8274e58831659cf7c496dc565fe4b3fea7c | |
parent | Modernize XML specific tests (diff) | |
download | slicer-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.h | 2 |
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<>; |