Skip to content

Commit

Permalink
Use inner command name in ProxyCommand unique_ptr constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
rzblue committed Aug 25, 2023
1 parent a0c029a commit 27fbaae
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ ProxyCommand::ProxyCommand(Command* command)
}

ProxyCommand::ProxyCommand(std::unique_ptr<Command> 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();
Expand Down

0 comments on commit 27fbaae

Please sign in to comment.