From 67b0ef26b13e051b762ef2bfeb799924c73d8c1a Mon Sep 17 00:00:00 2001 From: azv Date: Fri, 24 Mar 2017 16:26:41 +0300 Subject: [PATCH] Fix compilation problem on Linux --- src/SketchAPI/SketchAPI_Sketch.cpp | 3 ++- src/SketchPlugin/SketchPlugin_MacroCircle.cpp | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) 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( -- 2.39.2