diff --git a/choreolib/src/main/native/cpp/choreo/lib/ChoreoSwerveCommand.cpp b/choreolib/src/main/native/cpp/choreo/lib/ChoreoSwerveCommand.cpp index 8d4ce1c91..c66c17074 100644 --- a/choreolib/src/main/native/cpp/choreo/lib/ChoreoSwerveCommand.cpp +++ b/choreolib/src/main/native/cpp/choreo/lib/ChoreoSwerveCommand.cpp @@ -4,6 +4,8 @@ #include +#include + using namespace choreolib; ChoreoSwerveCommand::ChoreoSwerveCommand( @@ -11,11 +13,11 @@ ChoreoSwerveCommand::ChoreoSwerveCommand( ChoreoControllerFunction controller, std::function outputChassisSpeeds, std::function mirrorTrajectory, frc2::Requirements requirements) - : m_traj(trajectory), - m_pose(poseSupplier), - m_controller(controller), - m_outputChassisSpeeds(outputChassisSpeeds), - m_mirrorTrajectory(mirrorTrajectory) { + : m_traj(std::move(trajectory)), + m_pose(std::move(poseSupplier)), + m_controller(std::move(controller)), + m_outputChassisSpeeds(std::move(outputChassisSpeeds)), + m_mirrorTrajectory(std::move(mirrorTrajectory)) { AddRequirements(requirements); }