Salome HOME
Sources formated according to the codeing standards
[modules/shaper.git] / src / PartSetPlugin / PartSetPlugin_Duplicate.cpp
index 28c8ce3defba9d875f50bba959f1f6502ce5edab..7f94e6943b48dc7f47c925de3681f0d343c6ec70 100644 (file)
@@ -22,19 +22,18 @@ void PartSetPlugin_Duplicate::initAttributes()
 
   boost::shared_ptr<ModelAPI_PluginManager> aPManager = ModelAPI_PluginManager::get();
   boost::shared_ptr<ModelAPI_Document> aRoot = aPManager->rootDocument();
-  boost::shared_ptr<ModelAPI_ResultPart> aSource; // searching for source document attribute
-  for(int a = aRoot->size(getGroup()) - 1; a >= 0; a--) {
+  boost::shared_ptr<ModelAPI_ResultPart> aSource;  // searching for source document attribute
+  for (int a = aRoot->size(getGroup()) - 1; a >= 0; a--) {
     aSource = boost::dynamic_pointer_cast<ModelAPI_ResultPart>(aRoot->object(getGroup(), a));
-    if (aSource && aSource->data() && 
-        aSource->data()->docRef(ModelAPI_ResultPart::DOC_REF())->value() == 
-        aPManager->currentDocument())
+    if (aSource && aSource->data()
+        && aSource->data()->docRef(ModelAPI_ResultPart::DOC_REF())->value()
+            == aPManager->currentDocument())
       break;
     aSource.reset();
   }
   if (aSource) {
     boost::shared_ptr<ModelAPI_Document> aCopy = aPManager->copy(
-      aSource->data()->docRef(ModelAPI_ResultPart::DOC_REF())->value(),
-      data()->name());
+        aSource->data()->docRef(ModelAPI_ResultPart::DOC_REF())->value(), data()->name());
     data()->refattr(ORIGIN_REF())->setObject(aSource);
   }
 }