]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix compilation on CentOS
authorazv <azv@opencascade.com>
Fri, 24 Nov 2017 12:00:49 +0000 (15:00 +0300)
committerazv <azv@opencascade.com>
Fri, 24 Nov 2017 12:00:49 +0000 (15:00 +0300)
src/Model/Model_Data.h

index 72875fc5a6ef170756c549039bd3b5625b3db6c3..836c4d646c038bec34d17fed3e914ee03b55cce5 100644 (file)
@@ -316,7 +316,7 @@ private:
     else { \
       FolderPtr anAttributeOwnerFolder = std::dynamic_pointer_cast<ModelAPI_Folder>(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<ModelAPI_Folder>(owner()); \
       if (anAttributeOwnerFolder.get()) \
-        aTargetData->removeBackReference(anAttributeOwnerFolder, id()); \
+        aTargetData->removeBackReference(ObjectPtr(anAttributeOwnerFolder), id()); \
     } \
   }