From: azv Date: Fri, 24 Mar 2017 13:26:41 +0000 (+0300) Subject: Fix compilation problem on Linux X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8d95bf90662fcc61687813a78893f97df13883be;p=modules%2Fshaper.git Fix compilation problem on Linux --- diff --git a/src/SketchAPI/SketchAPI_Sketch.cpp b/src/SketchAPI/SketchAPI_Sketch.cpp index edfef921b..77adc1a81 100644 --- a/src/SketchAPI/SketchAPI_Sketch.cpp +++ b/src/SketchAPI/SketchAPI_Sketch.cpp @@ -408,7 +408,8 @@ std::shared_ptr SketchAPI_Sketch::addArc( { std::shared_ptr aFeature = compositeFeature()->addFeature(SketchPlugin_Arc::ID()); - return MacroArcPtr(new SketchAPI_MacroArc(aFeature, theTangentPoint, theEndX, theEndY, theInversed)); + return MacroArcPtr(new SketchAPI_MacroArc( + aFeature, theTangentPoint, theEndX, theEndY, theInversed)); } std::shared_ptr SketchAPI_Sketch::addArc( diff --git a/src/SketchPlugin/SketchPlugin_MacroCircle.cpp b/src/SketchPlugin/SketchPlugin_MacroCircle.cpp index b545ccdd2..2e67b322a 100644 --- a/src/SketchPlugin/SketchPlugin_MacroCircle.cpp +++ b/src/SketchPlugin/SketchPlugin_MacroCircle.cpp @@ -138,11 +138,11 @@ void SketchPlugin_MacroCircle::createCircleByCenterAndPassed() SketchPlugin_Tools::createConstraint(this, CENTER_POINT_REF_ID(), aCircleFeature->attribute(SketchPlugin_Circle::CENTER_ID()), - NULL, + ObjectPtr(), false); SketchPlugin_Tools::createConstraint(this, PASSED_POINT_REF_ID(), - NULL, + AttributePtr(), aCircleFeature->lastResult(), true); } @@ -180,7 +180,7 @@ void SketchPlugin_MacroCircle::createCircleByThreePoints() // Create constraints. for (int i = 0; i < 3; ++i) - SketchPlugin_Tools::createConstraint(this, aPointRef[i], NULL, aCircleResult, true); + SketchPlugin_Tools::createConstraint(this, aPointRef[i], AttributePtr(), aCircleResult, true); } FeaturePtr SketchPlugin_MacroCircle::createCircleFeature(