]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix compilation problem on Linux
authorazv <azv@opencascade.com>
Fri, 24 Mar 2017 13:26:41 +0000 (16:26 +0300)
committerdbv <dbv@opencascade.com>
Mon, 27 Mar 2017 06:56:56 +0000 (09:56 +0300)
src/SketchAPI/SketchAPI_Sketch.cpp
src/SketchPlugin/SketchPlugin_MacroCircle.cpp

index edfef921b088ac3602d476de1dbed9eba01e42d6..77adc1a810a5b60f667d3d2c83bd5c85a7c6685e 100644 (file)
@@ -408,7 +408,8 @@ std::shared_ptr<SketchAPI_MacroArc> SketchAPI_Sketch::addArc(
 {
   std::shared_ptr<ModelAPI_Feature> 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_MacroArc> SketchAPI_Sketch::addArc(
index b545ccdd24a2ee61bc45c4c6306118f9ec002408..2e67b322a3fa1c285206c6d38c86c9d13c50c16d 100644 (file)
@@ -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(