Salome HOME
Sources formated according to the codeing standards
[modules/shaper.git] / src / ModelAPI / ModelAPI_Tools.cpp
index 1c49c67799d045d685966049f14e095b5bdc1f65..52b88b5b05aa4200a5d298039ed8bf6bbf34503a 100644 (file)
@@ -6,16 +6,18 @@
 #include <ModelAPI_ResultBody.h>
 #include <ModelAPI_ResultConstruction.h>
 
-
 namespace ModelAPI_Tools {
 
 boost::shared_ptr<GeomAPI_Shape> shape(const ResultPtr& theResult)
 {
   ResultBodyPtr aBody = boost::dynamic_pointer_cast<ModelAPI_ResultBody>(theResult);
-  if (aBody) return aBody->shape();
-  ResultConstructionPtr aConstruct = boost::dynamic_pointer_cast<ModelAPI_ResultConstruction>(theResult);
-  if (aConstruct) return aConstruct->shape();
+  if (aBody)
+    return aBody->shape();
+  ResultConstructionPtr aConstruct = boost::dynamic_pointer_cast<ModelAPI_ResultConstruction>(
+      theResult);
+  if (aConstruct)
+    return aConstruct->shape();
   return boost::shared_ptr<GeomAPI_Shape>();
 }
 
-}
\ No newline at end of file
+}