mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
clang-tidy: modernize-pass-by-value
This commit is contained in:
@@ -4,10 +4,12 @@
|
||||
|
||||
#include "frc2/command/PIDSubsystem.h"
|
||||
|
||||
#include <utility>
|
||||
|
||||
using namespace frc2;
|
||||
|
||||
PIDSubsystem::PIDSubsystem(PIDController controller, double initialPosition)
|
||||
: m_controller{controller} {
|
||||
: m_controller{std::move(controller)} {
|
||||
SetSetpoint(initialPosition);
|
||||
AddChild("PID Controller", &m_controller);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user