From 09404a23ed81bfde1438517f1b9bf279a982e71d Mon Sep 17 00:00:00 2001 From: spo Date: Tue, 22 Dec 2015 12:54:56 +0300 Subject: [PATCH] Fix compilation on Linux --- src/SketchSolver/PlaneGCSSolver/PlaneGCSSolver_Storage.cpp | 6 +++--- src/SketchSolver/PlaneGCSSolver/PlaneGCSSolver_Storage.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) 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 -- 2.39.2