From 27fbaaeede5e90be72f34b884a53a46eb56d6abb Mon Sep 17 00:00:00 2001 From: Ryan Blue Date: Fri, 25 Aug 2023 18:12:00 -0400 Subject: [PATCH] Use inner command name in ProxyCommand unique_ptr constructor --- .../src/main/native/cpp/frc2/command/ProxyCommand.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wpilibNewCommands/src/main/native/cpp/frc2/command/ProxyCommand.cpp b/wpilibNewCommands/src/main/native/cpp/frc2/command/ProxyCommand.cpp index 49bff658ced..ec3e247819d 100644 --- a/wpilibNewCommands/src/main/native/cpp/frc2/command/ProxyCommand.cpp +++ b/wpilibNewCommands/src/main/native/cpp/frc2/command/ProxyCommand.cpp @@ -17,7 +17,9 @@ ProxyCommand::ProxyCommand(Command* command) } ProxyCommand::ProxyCommand(std::unique_ptr command) - : m_supplier([command = std::move(command)] { return command.get(); }) {} + : m_supplier(( + SetName(std::string{"Proxy("}.append(command->GetName()).append(")")), + [command = std::move(command)] { return command.get(); })) {} void ProxyCommand::Initialize() { m_command = m_supplier();