]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/Model/Model_AttributeReference.cpp
Salome HOME
Sources formated according to the codeing standards
[modules/shaper.git] / src / Model / Model_AttributeReference.cpp
index 3169bd57a484f157c3807228bf9467893d5b245f..dfb54c5f10331298e535624aba6457cb10ee2cf9 100644 (file)
@@ -13,9 +13,9 @@ using namespace std;
 void Model_AttributeReference::setValue(ObjectPtr theObject)
 {
   if (!myIsInitialized || value() != theObject) {
-    boost::shared_ptr<Model_Data> aData = 
-      boost::dynamic_pointer_cast<Model_Data>(theObject->data());
-    myRef->Set(aData->label().Father()); // references to the feature label
+    boost::shared_ptr<Model_Data> aData = boost::dynamic_pointer_cast<Model_Data>(
+        theObject->data());
+    myRef->Set(aData->label().Father());  // references to the feature label
     owner()->data()->sendAttributeUpdated(this);
   }
 }
@@ -23,8 +23,8 @@ void Model_AttributeReference::setValue(ObjectPtr theObject)
 ObjectPtr Model_AttributeReference::value()
 {
   if (myIsInitialized) {
-    boost::shared_ptr<Model_Document> aDoc = 
-      boost::dynamic_pointer_cast<Model_Document>(owner()->document());
+    boost::shared_ptr<Model_Document> aDoc = boost::dynamic_pointer_cast<Model_Document>(
+        owner()->document());
     if (aDoc) {
       TDF_Label aRefLab = myRef->Get();
       return aDoc->object(aRefLab);
@@ -38,5 +38,5 @@ Model_AttributeReference::Model_AttributeReference(TDF_Label& theLabel)
 {
   myIsInitialized = theLabel.FindAttribute(TDF_Reference::GetID(), myRef) == Standard_True;
   if (!myIsInitialized)
-    myRef = TDF_Reference::Set(theLabel, theLabel); // not initialized references to itself
+    myRef = TDF_Reference::Set(theLabel, theLabel);  // not initialized references to itself
 }