From 5371d89d684526a3f646906f4a35b3a68622ed76 Mon Sep 17 00:00:00 2001 From: dbv Date: Fri, 11 Sep 2015 16:06:49 +0300 Subject: [PATCH] Warnings fixes --- src/GeomAPI/GeomAPI_Circ.cpp | 2 +- src/GeomAPI/GeomAPI_DataMapOfShapeMapOfShapes.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/GeomAPI/GeomAPI_Circ.cpp b/src/GeomAPI/GeomAPI_Circ.cpp index 56a7b6d02..dca089797 100644 --- a/src/GeomAPI/GeomAPI_Circ.cpp +++ b/src/GeomAPI/GeomAPI_Circ.cpp @@ -90,5 +90,5 @@ const bool GeomAPI_Circ::parameter(const std::shared_ptr thePoint, double& theParameter) const { Handle(Geom_Circle) aCurve = new Geom_Circle(*MY_CIRC); - return GeomLib_Tool::Parameter(aCurve, thePoint->impl(), theTolerance, theParameter); + return GeomLib_Tool::Parameter(aCurve, thePoint->impl(), theTolerance, theParameter) == Standard_True; } diff --git a/src/GeomAPI/GeomAPI_DataMapOfShapeMapOfShapes.cpp b/src/GeomAPI/GeomAPI_DataMapOfShapeMapOfShapes.cpp index 53e5411e6..9e076e6f9 100644 --- a/src/GeomAPI/GeomAPI_DataMapOfShapeMapOfShapes.cpp +++ b/src/GeomAPI/GeomAPI_DataMapOfShapeMapOfShapes.cpp @@ -74,6 +74,8 @@ bool GeomAPI_DataMapOfShapeMapOfShapes::find(const std::shared_ptrsetImpl(new TopoDS_Shape(anIt.Value())); theItems.push_back(aShape); } + + return true; } //================================================================================================= -- 2.39.2