Skip to content

Commit

Permalink
Use const ref
Browse files Browse the repository at this point in the history
Signed-off-by: Steve Peters <[email protected]>
  • Loading branch information
scpeters committed Jul 13, 2023
1 parent d7f552f commit a7e4513
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions dartsim/src/JointFeatures.cc
Original file line number Diff line number Diff line change
Expand Up @@ -728,8 +728,8 @@ Wrench3d JointFeatures::GetJointTransmittedWrenchInJointFrame(
void JointFeatures::SetJointMimicConstraint(
const Identity &_id,
const std::size_t /*_dof*/, // follower dof not supported by dart API yet
const std::string _joint,
const std::string,
const std::string &_joint,
const std::string &/*_axis*/,
const double _multiplier,
const double _offset,
const double _reference)
Expand Down
4 changes: 2 additions & 2 deletions dartsim/src/JointFeatures.hh
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,8 @@ class JointFeatures :
public: void SetJointMimicConstraint(
const Identity &_id,
const std::size_t _dof,
const std::string _joint,
const std::string _axis,
const std::string &_joint,
const std::string &_axis,
const double _multiplier,
const double _offset,
const double _reference) override;
Expand Down
8 changes: 4 additions & 4 deletions include/gz/physics/Joint.hh
Original file line number Diff line number Diff line change
Expand Up @@ -610,8 +610,8 @@ namespace gz

public: void SetMimicConstraint(
const std::size_t _dof,
const std::string _joint,
const std::string _axis,
const std::string &_joint,
const std::string &_axis,
Scalar _multiplier,
Scalar _offset,
Scalar _reference);
Expand All @@ -627,8 +627,8 @@ namespace gz
public: virtual void SetJointMimicConstraint(
const Identity &_id,
const std::size_t _dof,
const std::string _joint,
const std::string _axis,
const std::string &_joint,
const std::string &_axis,
Scalar _multiplier, Scalar _offset, Scalar _reference) = 0;
};
};
Expand Down
4 changes: 2 additions & 2 deletions include/gz/physics/detail/Joint.hh
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,8 @@ namespace gz
void SetMimicConstraintFeature::Joint<PolicyT, FeaturesT>::
SetMimicConstraint(
const std::size_t _dof,
const std::string _joint,
const std::string _axis,
const std::string &_joint,
const std::string &_axis,
Scalar _multiplier, Scalar _offset, Scalar _reference)
{
this->template Interface<SetMimicConstraintFeature>()
Expand Down

0 comments on commit a7e4513

Please sign in to comment.