Skip to content

Commit

Permalink
remove const in param for EnableGravity and EnableWind
Browse files Browse the repository at this point in the history
Signed-off-by: youhy <[email protected]>
  • Loading branch information
AzulRadio committed May 16, 2024
1 parent 93be110 commit 624bc06
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions include/sdf/Link.hh
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,6 @@ namespace sdf
/// \brief Check if this link should be subject to gravity.
/// If true, this link should be affected by gravity.
/// \return true if the model should be subject to gravity, false otherwise.
/// \sa bool Model::EnableGravity
public: bool EnableGravity() const;

/// \brief Set whether this link should be subject to wind.
Expand All @@ -336,7 +335,6 @@ namespace sdf
/// \brief Set whether this link should be subject to gravity.
/// \param[in] _enableGravity True or false depending on whether the link
/// should be subject to gravity.
/// \sa Model::SetEnableGravity(bool)
public: void SetEnableGravity(bool _enableGravity);

/// \brief Add a collision to the link.
Expand Down
4 changes: 2 additions & 2 deletions src/Link.cc
Original file line number Diff line number Diff line change
Expand Up @@ -591,13 +591,13 @@ bool Link::EnableGravity() const
}

/////////////////////////////////////////////////
void Link::SetEnableWind(const bool _enableWind)
void Link::SetEnableWind(bool _enableWind)
{
this->dataPtr->enableWind = _enableWind;
}

/////////////////////////////////////////////////
void Link::SetEnableGravity(const bool _enableGravity)
void Link::SetEnableGravity(bool _enableGravity)
{
this->dataPtr->enableGravity = _enableGravity;
}
Expand Down

0 comments on commit 624bc06

Please sign in to comment.