Skip to content

Commit

Permalink
[EtienneAr Feedback] Add explicit to single argument constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
Megane Millan committed Oct 11, 2024
1 parent f43ba0f commit 52358ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/pinocchio/multibody/joint/joint-mimic.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ namespace pinocchio
struct TransposeConst
{
const ScaledJointMotionSubspaceTpl & ref;
TransposeConst(const ScaledJointMotionSubspaceTpl & ref)
explicit TransposeConst(const ScaledJointMotionSubspaceTpl & ref)
: ref(ref)
{
}
Expand Down
5 changes: 3 additions & 2 deletions include/pinocchio/serialization/joints-model.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ namespace boost
Derived & joint;

public:
SetJointIndexes(Derived & joint)
explicit SetJointIndexes(Derived & joint)
: joint(joint) {};

void run(pinocchio::JointIndex i_id, int i_q, int i_v, int i_j)
Expand All @@ -86,7 +86,8 @@ namespace boost
pinocchio::JointModelMimicTpl<Scalar, Options, JointCollectionTpl> & joint;

public:
SetJointIndexes(pinocchio::JointModelMimicTpl<Scalar, Options, JointCollectionTpl> & joint)
explicit SetJointIndexes(
pinocchio::JointModelMimicTpl<Scalar, Options, JointCollectionTpl> & joint)
: joint(joint) {};

void run(pinocchio::JointIndex i_id, int i_q, int i_v, int i_j)
Expand Down

0 comments on commit 52358ed

Please sign in to comment.