Salome HOME
Meet the coding style (line length <= 100)
[modules/shaper.git] / src / SketchPlugin / SketchPlugin_SketchEntity.cpp
index f29dfc1391dfe661ce98ec2f780e2107b77a71ed..2ec1f2dadb29b9dba1b9345c43ff78a49c04bcaa 100644 (file)
@@ -4,7 +4,6 @@
 
 #include <ModelAPI_Session.h>
 #include <ModelAPI_Validator.h>
-#include <ModelAPI_AttributeIntArray.h>
 
 SketchPlugin_SketchEntity::SketchPlugin_SketchEntity()
 : SketchPlugin_Feature()
@@ -14,15 +13,12 @@ SketchPlugin_SketchEntity::SketchPlugin_SketchEntity()
 void SketchPlugin_SketchEntity::initAttributes()
 {
   data()->addAttribute(AUXILIARY_ID(), ModelAPI_AttributeBoolean::typeId());
-  ModelAPI_Session::get()->validators()->registerNotObligatory(getKind(), AUXILIARY_ID());
 
   initDerivedClassAttributes();
 
-  AttributePtr anAttr = data()->addAttribute(SketchPlugin_SketchEntity::COPY_ID(), ModelAPI_AttributeBoolean::typeId());
+  AttributePtr anAttr = data()->addAttribute(SketchPlugin_SketchEntity::COPY_ID(),
+                                             ModelAPI_AttributeBoolean::typeId());
   anAttr->setIsArgument(false);
-  ModelAPI_Session::get()->validators()->registerNotObligatory(getKind(), SketchPlugin_SketchEntity::COPY_ID());
-  AttributeBooleanPtr anAttrBool = std::dynamic_pointer_cast<ModelAPI_AttributeBoolean>(anAttr);
-  if(anAttr.get()) {
-    anAttrBool->setValue(false);
-  }
+  ModelAPI_Session::get()->validators()->registerNotObligatory(getKind(),
+    SketchPlugin_SketchEntity::COPY_ID());
 }