X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModel%2FModel_AttributeRefList.cpp;h=9287cf0415079707b7ecfb17c91b01c51742deb4;hb=965adcb3288bda478cdd045d4b2f90c92980d099;hp=014592f0d3eebd58a02679f862777e510745c69c;hpb=a6b5300a8b356e933d4778d93bb78f3cc9d7b9cb;p=modules%2Fshaper.git diff --git a/src/Model/Model_AttributeRefList.cpp b/src/Model/Model_AttributeRefList.cpp index 014592f0d..9287cf041 100644 --- a/src/Model/Model_AttributeRefList.cpp +++ b/src/Model/Model_AttributeRefList.cpp @@ -1,3 +1,5 @@ +// Copyright (C) 2014-20xx CEA/DEN, EDF R&D + // File: ModelAPI_AttributeRefList.cxx // Created: 8 May 2014 // Author: Mikhail PONIKAROV @@ -12,7 +14,7 @@ using namespace std; void Model_AttributeRefList::append(ObjectPtr theObject) { - boost::shared_ptr aData = boost::dynamic_pointer_cast(theObject->data()); + std::shared_ptr aData = std::dynamic_pointer_cast(theObject->data()); myRef->Append(aData->label().Father()); // store label of the object owner()->data()->sendAttributeUpdated(this); @@ -20,7 +22,7 @@ void Model_AttributeRefList::append(ObjectPtr theObject) void Model_AttributeRefList::remove(ObjectPtr theObject) { - boost::shared_ptr aData = boost::dynamic_pointer_cast(theObject->data()); + std::shared_ptr aData = std::dynamic_pointer_cast(theObject->data()); myRef->Remove(aData->label().Father()); owner()->data()->sendAttributeUpdated(this); @@ -34,7 +36,7 @@ int Model_AttributeRefList::size() const list Model_AttributeRefList::list() { std::list aResult; - boost::shared_ptr aDoc = boost::dynamic_pointer_cast( + std::shared_ptr aDoc = std::dynamic_pointer_cast( owner()->document()); if (aDoc) { const TDF_LabelList& aList = myRef->List(); @@ -48,7 +50,7 @@ list Model_AttributeRefList::list() ObjectPtr Model_AttributeRefList::object(const int theIndex) const { - boost::shared_ptr aDoc = boost::dynamic_pointer_cast( + std::shared_ptr aDoc = std::dynamic_pointer_cast( owner()->document()); if (aDoc) { const TDF_LabelList& aList = myRef->List();