From: azv Date: Fri, 24 Nov 2017 12:00:49 +0000 (+0300) Subject: Fix compilation on CentOS X-Git-Tag: V_2.10.0RC~123^2~19 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6a730bb92e2c934347c197b8e26ec0c3823b536d;p=modules%2Fshaper.git Fix compilation on CentOS --- 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()); \ } \ }