From: spo Date: Tue, 22 Dec 2015 09:54:56 +0000 (+0300) Subject: Fix compilation on Linux X-Git-Tag: V_2.1.0~108^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=09404a23ed81bfde1438517f1b9bf279a982e71d;p=modules%2Fshaper.git Fix compilation on Linux --- diff --git a/src/SketchSolver/PlaneGCSSolver/PlaneGCSSolver_Storage.cpp b/src/SketchSolver/PlaneGCSSolver/PlaneGCSSolver_Storage.cpp index 475fd7e27..4fa74d07e 100644 --- a/src/SketchSolver/PlaneGCSSolver/PlaneGCSSolver_Storage.cpp +++ b/src/SketchSolver/PlaneGCSSolver/PlaneGCSSolver_Storage.cpp @@ -73,7 +73,7 @@ void PlaneGCSSolver_Storage::addConstraint( } -bool PlaneGCSSolver_Storage::update(ConstraintWrapperPtr& theConstraint) +bool PlaneGCSSolver_Storage::update(ConstraintWrapperPtr theConstraint) { bool isUpdated = false; std::shared_ptr aConstraint = @@ -126,7 +126,7 @@ static bool updateValues(EntityWrapperPtr& theEntity) return isUpdated; } -bool PlaneGCSSolver_Storage::update(EntityWrapperPtr& theEntity) +bool PlaneGCSSolver_Storage::update(EntityWrapperPtr theEntity) { if (theEntity->type() == ENTITY_SKETCH) return true; // sketch is not necessary for PlaneGCS, so it is always says true @@ -174,7 +174,7 @@ bool PlaneGCSSolver_Storage::update(EntityWrapperPtr& theEntity) return isUpdated; } -bool PlaneGCSSolver_Storage::update(ParameterWrapperPtr& theParameter) +bool PlaneGCSSolver_Storage::update(ParameterWrapperPtr theParameter) { std::shared_ptr aParam = std::dynamic_pointer_cast(theParameter); diff --git a/src/SketchSolver/PlaneGCSSolver/PlaneGCSSolver_Storage.h b/src/SketchSolver/PlaneGCSSolver/PlaneGCSSolver_Storage.h index 1ddc40100..5cb437094 100644 --- a/src/SketchSolver/PlaneGCSSolver/PlaneGCSSolver_Storage.h +++ b/src/SketchSolver/PlaneGCSSolver/PlaneGCSSolver_Storage.h @@ -56,13 +56,13 @@ public: /// \brief Update constraint's data /// \return \c true if any value is updated - virtual bool update(ConstraintWrapperPtr& theConstraint); + virtual bool update(ConstraintWrapperPtr theConstraint); /// \brief Update entity's data /// \return \c true if any value is updated - virtual bool update(EntityWrapperPtr& theEntity); + virtual bool update(EntityWrapperPtr theEntity); /// \brief Update parameter's data /// \return \c true if the value of parameter is updated - virtual bool update(ParameterWrapperPtr& theParameter); + virtual bool update(ParameterWrapperPtr theParameter); /// \brief Update SketchPlugin features after resolving constraints /// \param theFixedOnly [in] if \c true the fixed points will be updated only