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,14 @@
|
||||
|
||||
#include "commands/DefaultDrive.h"
|
||||
|
||||
#include <utility>
|
||||
|
||||
DefaultDrive::DefaultDrive(DriveSubsystem* subsystem,
|
||||
std::function<double()> forward,
|
||||
std::function<double()> rotation)
|
||||
: m_drive{subsystem}, m_forward{forward}, m_rotation{rotation} {
|
||||
: m_drive{subsystem},
|
||||
m_forward{std::move(forward)},
|
||||
m_rotation{std::move(rotation)} {
|
||||
AddRequirements({subsystem});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user