We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e88f89 commit f0d8608Copy full SHA for f0d8608
wpilibNewCommands/src/main/native/cpp/frc2/command/CommandPtr.cpp
@@ -54,9 +54,9 @@ CommandPtr CommandPtr::Repeatedly(int times) && {
54
AssertValid();
55
std::shared_ptr<int> countPtr = std::make_shared<int>(0);
56
return std::move(*this)
57
- .FinallyDo([countPtr = countPtr] { (*countPtr)++; })
+ .FinallyDo([countPtr] { (*countPtr)++; })
58
.Repeatedly()
59
- .Until([countPtr = countPtr, times = times] {
+ .Until([countPtr, times] {
60
return ((*countPtr) >= times);
61
});
62
}
0 commit comments