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