From: azv Date: Mon, 3 Apr 2017 10:14:48 +0000 (+0300) Subject: Fix compilation errors on Linux X-Git-Tag: V_2.7.0~95 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e22dfde666a58a2fb092c3bb9ab9b30cd30a0f5b;p=modules%2Fshaper.git Fix compilation errors on Linux --- 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()) {