X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FModel%2FModel_AttributeReference.cpp;h=adcfe4ab46e0b1d62d038f8408dd7568a029afe7;hb=2b4f4bf278c841500eb29bb5d204690427b0d56b;hp=105639b742fdda4b3b8b17887361e436875b2ff3;hpb=ef0c6c6af8bec0578a0e8f7f12871e02988d4374;p=modules%2Fshaper.git diff --git a/src/Model/Model_AttributeReference.cpp b/src/Model/Model_AttributeReference.cpp index 105639b74..adcfe4ab4 100644 --- a/src/Model/Model_AttributeReference.cpp +++ b/src/Model/Model_AttributeReference.cpp @@ -11,7 +11,7 @@ using namespace std; -void Model_AttributeReference::setValue(boost::shared_ptr theFeature) +void Model_AttributeReference::setValue(FeaturePtr theFeature) { if (value() != theFeature) { boost::shared_ptr aData = @@ -19,7 +19,7 @@ void Model_AttributeReference::setValue(boost::shared_ptr theF if (myRef.IsNull()) { boost::shared_ptr aMyData = boost::dynamic_pointer_cast(owner()->data()); - TDF_Reference::Set(aMyData->label(), aData->label()); + myRef = TDF_Reference::Set(aMyData->label(), aData->label()); } else { myRef->Set(aData->label()); } @@ -30,7 +30,7 @@ void Model_AttributeReference::setValue(boost::shared_ptr theF } } -boost::shared_ptr Model_AttributeReference::value() +FeaturePtr Model_AttributeReference::value() { if (!myRef.IsNull()) { boost::shared_ptr aDoc = @@ -41,7 +41,7 @@ boost::shared_ptr Model_AttributeReference::value() } } // not initialized - return boost::shared_ptr(); + return FeaturePtr(); } Model_AttributeReference::Model_AttributeReference(TDF_Label& theLabel)