Salome HOME
Adjust test cases according to updated Arc behavior
[modules/shaper.git] / src / GeomValidators / GeomValidators_Finite.cpp
index 67f8d70c94687efd4e836ed10ad9d8589e9928ea..2c871d43874ef3ec91c8f2ec57bac7e1c0b860ee 100755 (executable)
@@ -20,21 +20,24 @@ bool GeomValidators_Finite::isValid(const AttributePtr& theAttribute,
   const std::string anAttributeType = theAttribute->attributeType();
 
   if(anAttributeType == ModelAPI_AttributeSelection::typeId()) {
-    AttributeSelectionPtr aSelectionAttr = std::dynamic_pointer_cast<ModelAPI_AttributeSelection>(theAttribute);
+    AttributeSelectionPtr aSelectionAttr =
+      std::dynamic_pointer_cast<ModelAPI_AttributeSelection>(theAttribute);
     ResultPtr aResult = aSelectionAttr->context();
-    ResultConstructionPtr aConstruction = std::dynamic_pointer_cast<ModelAPI_ResultConstruction>(aResult);
+    ResultConstructionPtr aConstruction =
+      std::dynamic_pointer_cast<ModelAPI_ResultConstruction>(aResult);
     if (aConstruction.get() && aConstruction->isInfinite()) {
       aValid = false;
       theError = "Infinite result is selected.";
     }
   } else if(anAttributeType == ModelAPI_AttributeSelectionList::typeId()) {
-    AttributeSelectionListPtr aSelectionListAttr = 
+    AttributeSelectionListPtr aSelectionListAttr =
                       std::dynamic_pointer_cast<ModelAPI_AttributeSelectionList>(theAttribute);
     for (int i = 0, aSize = aSelectionListAttr->size(); i < aSize; i++) {
       AttributeSelectionPtr aSelectAttr = aSelectionListAttr->value(i);
       ResultPtr aResult = aSelectAttr->context();
       if (aResult.get() && aResult->groupName() == ModelAPI_ResultConstruction::group()) {
-        ResultConstructionPtr aConstruction = std::dynamic_pointer_cast<ModelAPI_ResultConstruction>(aResult);
+        ResultConstructionPtr aConstruction =
+          std::dynamic_pointer_cast<ModelAPI_ResultConstruction>(aResult);
         if (aConstruction.get() && aConstruction->isInfinite()) {
           aValid = false;
           theError = "Infinite result is selected.";