mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-25 01:41:43 +00:00
clang-tidy: modernize-pass-by-value
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <functional>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include <hal/Types.h>
|
||||
@@ -102,7 +103,7 @@ class TimedRobot : public IterativeRobotBase, public ErrorBase {
|
||||
*/
|
||||
Callback(std::function<void()> func, units::second_t startTime,
|
||||
units::second_t period, units::second_t offset)
|
||||
: func{func},
|
||||
: func{std::move(func)},
|
||||
period{period},
|
||||
expirationTime{
|
||||
startTime + offset +
|
||||
|
||||
Reference in New Issue
Block a user