mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-22 06:22:58 +02:00
Manage Commands and CommandOutputTarget objects with smart pointers
This commit is contained in:
@@ -27,14 +27,14 @@ class HelpCommandType final : public CommandType
|
||||
public:
|
||||
wxString BuildName() override;
|
||||
void BuildSignature(CommandSignature &signature) override;
|
||||
Command *Create(CommandOutputTarget *target) override;
|
||||
CommandHolder Create(std::unique_ptr<CommandOutputTarget> &&target) override;
|
||||
};
|
||||
|
||||
class HelpCommand final : public CommandImplementation
|
||||
{
|
||||
public:
|
||||
HelpCommand(HelpCommandType &type, CommandOutputTarget *target)
|
||||
: CommandImplementation(type, target) { }
|
||||
HelpCommand(HelpCommandType &type, std::unique_ptr<CommandOutputTarget> &&target)
|
||||
: CommandImplementation(type, std::move(target)) { }
|
||||
bool Apply(CommandExecutionContext context) override;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user