Salome HOME
Fix compilation errors on Linux
authorazv <artem.zhidkov@opencascade.com>
Mon, 3 Apr 2017 10:14:48 +0000 (13:14 +0300)
committerazv <artem.zhidkov@opencascade.com>
Mon, 3 Apr 2017 10:14:48 +0000 (13:14 +0300)
src/GeomAlgoAPI/GeomAlgoAPI_Circ2dBuilder.cpp

index 793ec3f5780027086cf74e68335b21f4e73fb3ed..dbe5cbaa27d96f27938086ca410c088e8a7c5a94 100644 (file)
@@ -195,7 +195,7 @@ private:
     convertTangentCurvesToGccEnt(aTgCirc, aTgLine);
 
     if (aTgCirc.size() + aTgLine.size() != 3)
-      return 0;
+      return Circ2dPtr();
 
     std::shared_ptr<GccAna_Circ2d3Tan> 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<GccAna_Circ2d3Tan> 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<GccAna_Circ2d3Tan> 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<GccAna_Circ2d2TanRad> aCircleBuilder;
     switch (aTgLine.size()) {