From 6a730bb92e2c934347c197b8e26ec0c3823b536d Mon Sep 17 00:00:00 2001 From: azv Date: Fri, 24 Nov 2017 15:00:49 +0300 Subject: [PATCH] Fix compilation on CentOS --- src/Model/Model_Data.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Model/Model_Data.h b/src/Model/Model_Data.h index 72875fc5a..836c4d646 100644 --- a/src/Model/Model_Data.h +++ b/src/Model/Model_Data.h @@ -316,7 +316,7 @@ private: else { \ FolderPtr anAttributeOwnerFolder = std::dynamic_pointer_cast(owner()); \ if (anAttributeOwnerFolder.get()) \ - aTargetData->addBackReference(anAttributeOwnerFolder, id()); \ + aTargetData->addBackReference(ObjectPtr(anAttributeOwnerFolder), id()); \ } \ } @@ -332,7 +332,7 @@ private: else { \ FolderPtr anAttributeOwnerFolder = std::dynamic_pointer_cast(owner()); \ if (anAttributeOwnerFolder.get()) \ - aTargetData->removeBackReference(anAttributeOwnerFolder, id()); \ + aTargetData->removeBackReference(ObjectPtr(anAttributeOwnerFolder), id()); \ } \ } -- 2.39.2