Skip to content

Commit

Permalink
Remove unnecessary std::move from traversePathToComponent<T>
Browse files Browse the repository at this point in the history
  • Loading branch information
adamkewley committed Oct 30, 2024
1 parent 01b050f commit 7f41240
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OpenSim/Common/Component.h
Original file line number Diff line number Diff line change
Expand Up @@ -3564,7 +3564,7 @@ OpenSim_DECLARE_ABSTRACT_OBJECT(Component, Object);
template<class C>
const C* traversePathToComponent(const ComponentPath& path) const
{
return dynamic_cast<const C*>(traversePathToComponent(std::move(path)));
return dynamic_cast<const C*>(traversePathToComponent(path));
}

public:
Expand Down

0 comments on commit 7f41240

Please sign in to comment.