We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27fbaae commit dea86e8Copy full SHA for dea86e8
wpilibNewCommands/src/main/native/cpp/frc2/command/ProxyCommand.cpp
@@ -16,10 +16,10 @@ ProxyCommand::ProxyCommand(Command* command)
16
SetName(std::string{"Proxy("}.append(command->GetName()).append(")"));
17
}
18
19
-ProxyCommand::ProxyCommand(std::unique_ptr<Command> command)
20
- : m_supplier((
21
- SetName(std::string{"Proxy("}.append(command->GetName()).append(")")),
22
- [command = std::move(command)] { return command.get(); })) {}
+ProxyCommand::ProxyCommand(std::unique_ptr<Command> command) {
+ SetName(std::string{"Proxy("}.append(command->GetName()).append(")"));
+ m_supplier = [command = std::move(command)] { return command.get(); };
+}
23
24
void ProxyCommand::Initialize() {
25
m_command = m_supplier();
0 commit comments