From: azv Date: Mon, 3 Apr 2017 03:54:36 +0000 (+0300) Subject: Fix compilation errors on Linux X-Git-Tag: V_2.7.0~104 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=37749d5474472bc9ff475a6fd25698f5a0726a8e;p=modules%2Fshaper.git Fix compilation errors on Linux --- diff --git a/src/SketchSolver/SketchSolver_ConstraintMultiRotation.cpp b/src/SketchSolver/SketchSolver_ConstraintMultiRotation.cpp index e6c187069..3288c9830 100644 --- a/src/SketchSolver/SketchSolver_ConstraintMultiRotation.cpp +++ b/src/SketchSolver/SketchSolver_ConstraintMultiRotation.cpp @@ -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()); diff --git a/src/SketchSolver/SketchSolver_ConstraintMultiTranslation.cpp b/src/SketchSolver/SketchSolver_ConstraintMultiTranslation.cpp index 2c56f810b..1a26ea810 100644 --- a/src/SketchSolver/SketchSolver_ConstraintMultiTranslation.cpp +++ b/src/SketchSolver/SketchSolver_ConstraintMultiTranslation.cpp @@ -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";