mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-22 14:32:58 +02:00
Manage Commands and CommandOutputTarget objects with smart pointers
This commit is contained in:
@@ -27,15 +27,15 @@ class OpenProjectCommandType 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 OpenProjectCommand final : public CommandImplementation
|
||||
{
|
||||
public:
|
||||
OpenProjectCommand(CommandType &type,
|
||||
CommandOutputTarget *target)
|
||||
: CommandImplementation(type, target)
|
||||
std::unique_ptr<CommandOutputTarget> &&target)
|
||||
: CommandImplementation(type, std::move(target))
|
||||
{ }
|
||||
|
||||
virtual ~OpenProjectCommand();
|
||||
@@ -49,15 +49,15 @@ class SaveProjectCommandType 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 SaveProjectCommand final : public CommandImplementation
|
||||
{
|
||||
public:
|
||||
SaveProjectCommand(CommandType &type,
|
||||
CommandOutputTarget *target)
|
||||
: CommandImplementation(type, target)
|
||||
std::unique_ptr<CommandOutputTarget> &&target)
|
||||
: CommandImplementation(type, std::move(target))
|
||||
{ }
|
||||
|
||||
virtual ~SaveProjectCommand();
|
||||
|
Reference in New Issue
Block a user