From 80f267690e461aff23ca0a2d5e57e8437ae288a6 Mon Sep 17 00:00:00 2001 From: azv Date: Tue, 22 Dec 2015 09:17:23 +0300 Subject: [PATCH] Compilation errors on Linux (part 2) --- src/SketchSolver/SketchSolver_Storage.h | 6 +++--- .../SolveSpaceSolver/SolveSpaceSolver_Storage.cpp | 6 +++--- .../SolveSpaceSolver/SolveSpaceSolver_Storage.h | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/SketchSolver/SketchSolver_Storage.h b/src/SketchSolver/SketchSolver_Storage.h index e733421ff..772846c82 100644 --- a/src/SketchSolver/SketchSolver_Storage.h +++ b/src/SketchSolver/SketchSolver_Storage.h @@ -169,13 +169,13 @@ protected: /// \brief Update constraint's data /// \return \c true if any value is updated - virtual bool update(ConstraintWrapperPtr& theConstraint) = 0; + virtual bool update(ConstraintWrapperPtr theConstraint) = 0; /// \brief Update entity's data /// \return \c true if any value is updated - virtual bool update(EntityWrapperPtr& theEntity) = 0; + virtual bool update(EntityWrapperPtr theEntity) = 0; /// \brief Update parameter's data /// \return \c true if the value of parameter is updated - virtual bool update(ParameterWrapperPtr& theParameter) = 0; + virtual bool update(ParameterWrapperPtr theParameter) = 0; /// \brief Remove constraint /// \return \c true if the constraint and all its parameters are removed successfully diff --git a/src/SketchSolver/SolveSpaceSolver/SolveSpaceSolver_Storage.cpp b/src/SketchSolver/SolveSpaceSolver/SolveSpaceSolver_Storage.cpp index 110354bfb..cf11cf838 100644 --- a/src/SketchSolver/SolveSpaceSolver/SolveSpaceSolver_Storage.cpp +++ b/src/SketchSolver/SolveSpaceSolver/SolveSpaceSolver_Storage.cpp @@ -50,7 +50,7 @@ SolveSpaceSolver_Storage::SolveSpaceSolver_Storage(const GroupID& theGroup) { } -bool SolveSpaceSolver_Storage::update(ConstraintWrapperPtr& theConstraint) +bool SolveSpaceSolver_Storage::update(ConstraintWrapperPtr theConstraint) { bool isUpdated = false; std::shared_ptr aConstraint = @@ -111,7 +111,7 @@ bool SolveSpaceSolver_Storage::update(ConstraintWrapperPtr& theConstraint) return isUpdated; } -bool SolveSpaceSolver_Storage::update(EntityWrapperPtr& theEntity) +bool SolveSpaceSolver_Storage::update(EntityWrapperPtr theEntity) { bool isUpdated = false; std::shared_ptr anEntity = @@ -191,7 +191,7 @@ bool SolveSpaceSolver_Storage::update(EntityWrapperPtr& theEntity) return isUpdated; } -bool SolveSpaceSolver_Storage::update(ParameterWrapperPtr& theParameter) +bool SolveSpaceSolver_Storage::update(ParameterWrapperPtr theParameter) { std::shared_ptr aParameter = std::dynamic_pointer_cast(theParameter); diff --git a/src/SketchSolver/SolveSpaceSolver/SolveSpaceSolver_Storage.h b/src/SketchSolver/SolveSpaceSolver/SolveSpaceSolver_Storage.h index 12af9dc0c..2824e29f8 100644 --- a/src/SketchSolver/SolveSpaceSolver/SolveSpaceSolver_Storage.h +++ b/src/SketchSolver/SolveSpaceSolver/SolveSpaceSolver_Storage.h @@ -30,13 +30,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 Removes constraint from the storage //// /// \return \c true if the constraint and all its parameters are remove successfully -- 2.39.2