X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModelAPI%2FModelAPI_Tools.cpp;h=52b88b5b05aa4200a5d298039ed8bf6bbf34503a;hb=5d0a4d3dd908602b7673680523dfaad1962932e5;hp=1c49c67799d045d685966049f14e095b5bdc1f65;hpb=96ff1d1fb2acb842cee193f15492de81060a1d58;p=modules%2Fshaper.git diff --git a/src/ModelAPI/ModelAPI_Tools.cpp b/src/ModelAPI/ModelAPI_Tools.cpp index 1c49c6779..52b88b5b0 100644 --- a/src/ModelAPI/ModelAPI_Tools.cpp +++ b/src/ModelAPI/ModelAPI_Tools.cpp @@ -6,16 +6,18 @@ #include #include - namespace ModelAPI_Tools { boost::shared_ptr shape(const ResultPtr& theResult) { ResultBodyPtr aBody = boost::dynamic_pointer_cast(theResult); - if (aBody) return aBody->shape(); - ResultConstructionPtr aConstruct = boost::dynamic_pointer_cast(theResult); - if (aConstruct) return aConstruct->shape(); + if (aBody) + return aBody->shape(); + ResultConstructionPtr aConstruct = boost::dynamic_pointer_cast( + theResult); + if (aConstruct) + return aConstruct->shape(); return boost::shared_ptr(); } -} \ No newline at end of file +}