]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Warnings fixes
authordbv <dbv@opencascade.com>
Fri, 11 Sep 2015 13:06:49 +0000 (16:06 +0300)
committerdbv <dbv@opencascade.com>
Fri, 11 Sep 2015 13:06:49 +0000 (16:06 +0300)
src/GeomAPI/GeomAPI_Circ.cpp
src/GeomAPI/GeomAPI_DataMapOfShapeMapOfShapes.cpp

index 56a7b6d024a45ec1df6874142b62cd71829b54fe..dca0897977df88670c05901bb2d102540c16f65f 100644 (file)
@@ -90,5 +90,5 @@ const bool GeomAPI_Circ::parameter(const std::shared_ptr<GeomAPI_Pnt> thePoint,
                                    double& theParameter) const
 {
   Handle(Geom_Circle) aCurve = new Geom_Circle(*MY_CIRC);
-  return GeomLib_Tool::Parameter(aCurve, thePoint->impl<gp_Pnt>(), theTolerance, theParameter);
+  return GeomLib_Tool::Parameter(aCurve, thePoint->impl<gp_Pnt>(), theTolerance, theParameter) == Standard_True;
 }
index 53e5411e650f6046c7830cc37a46f39c4a1c7153..9e076e6f9c838140ce1129adb3af7f80bdaaf0a3 100644 (file)
@@ -74,6 +74,8 @@ bool GeomAPI_DataMapOfShapeMapOfShapes::find(const std::shared_ptr<GeomAPI_Shape
     aShape->setImpl(new TopoDS_Shape(anIt.Value()));
     theItems.push_back(aShape);
   }
+
+  return true;
 }
 
 //=================================================================================================