From e22dfde666a58a2fb092c3bb9ab9b30cd30a0f5b Mon Sep 17 00:00:00 2001 From: azv Date: Mon, 3 Apr 2017 13:14:48 +0300 Subject: [PATCH] Fix compilation errors on Linux --- src/GeomAlgoAPI/GeomAlgoAPI_Circ2dBuilder.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_Circ2dBuilder.cpp b/src/GeomAlgoAPI/GeomAlgoAPI_Circ2dBuilder.cpp index 793ec3f57..dbe5cbaa2 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_Circ2dBuilder.cpp +++ b/src/GeomAlgoAPI/GeomAlgoAPI_Circ2dBuilder.cpp @@ -195,7 +195,7 @@ private: convertTangentCurvesToGccEnt(aTgCirc, aTgLine); if (aTgCirc.size() + aTgLine.size() != 3) - return 0; + return Circ2dPtr(); std::shared_ptr aCircleBuilder; switch (aTgLine.size()) { @@ -228,7 +228,7 @@ private: CurveAdaptorPtr aCurve1 = myTangentShapes[0]; CurveAdaptorPtr aCurve2 = myTangentShapes[1]; if (!aCurve1 || !aCurve2) - return 0; + return Circ2dPtr(); std::shared_ptr aCircleBuilder; if (aCurve1->GetType() == GeomAbs_Line) { @@ -266,7 +266,7 @@ private: const gp_Pnt2d& aPoint2 = myPassingPoints[1]; CurveAdaptorPtr aCurve = myTangentShapes[0]; if (!aCurve) - return 0; + return Circ2dPtr(); std::shared_ptr aCircleBuilder; if (aCurve->GetType() == GeomAbs_Line) { @@ -340,7 +340,7 @@ private: convertTangentCurvesToGccEnt(aTgCirc, aTgLine); if (aTgCirc.size() + aTgLine.size() != 2) - return 0; + return Circ2dPtr(); std::shared_ptr aCircleBuilder; switch (aTgLine.size()) { -- 2.39.2