]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix compilation errors on Linux
authorazv <artem.zhidkov@opencascade.com>
Mon, 3 Apr 2017 03:54:36 +0000 (06:54 +0300)
committerazv <artem.zhidkov@opencascade.com>
Mon, 3 Apr 2017 03:54:36 +0000 (06:54 +0300)
src/SketchSolver/SketchSolver_ConstraintMultiRotation.cpp
src/SketchSolver/SketchSolver_ConstraintMultiTranslation.cpp

index e6c187069d59503a559547b6d598784b153a055e..3288c9830480d228ef7b87c0e68cea055707cd3a 100644 (file)
@@ -33,8 +33,8 @@ void SketchSolver_ConstraintMultiRotation::getAttributes(
 
   myType = CONSTRAINT_MULTI_ROTATION;
 
-  myStorage->update(aCenterAttr);
-  theCenter = myStorage->entity(aCenterAttr);
+  myStorage->update(AttributePtr(aCenterAttr));
+  theCenter = myStorage->entity(AttributePtr(aCenterAttr));
 
   AttributeStringPtr aMethodTypeAttr =
       myBaseConstraint->string(SketchPlugin_MultiRotation::ANGLE_TYPE());
index 2c56f810bb11bde93e2f0921e2186540e1b03311..1a26ea810177eb250bc8b91a9a42304b65c509e8 100644 (file)
@@ -29,10 +29,10 @@ void SketchSolver_ConstraintMultiTranslation::getAttributes(
 
   myType = CONSTRAINT_MULTI_TRANSLATION;
 
-  myStorage->update(aStartPointAttr);
-  theStartPoint = myStorage->entity(aStartPointAttr);
-  myStorage->update(aEndPointAttr);
-  theEndPoint = myStorage->entity(aEndPointAttr);
+  myStorage->update(AttributePtr(aStartPointAttr));
+  theStartPoint = myStorage->entity(AttributePtr(aStartPointAttr));
+  myStorage->update(AttributePtr(aEndPointAttr));
+  theEndPoint = myStorage->entity(AttributePtr(aEndPointAttr));
 
   AttributeStringPtr aMethodTypeAttr = aData->string(SketchPlugin_MultiTranslation::VALUE_TYPE());
   theFullValue = aMethodTypeAttr->value() != "SingleValue";