mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-21 22:12:58 +02:00
Replace virtual with override wherever possible; eliminate needless virtual...
... for functions in final classes. override is like const -- it's not necessary, but it helps the compiler to catch mistakes. There may be some overriding functions not explicitly declared virtual and I did not identify such cases, in which I might also add override.
This commit is contained in:
@@ -25,9 +25,9 @@
|
||||
class ImportCommandType final : public CommandType
|
||||
{
|
||||
public:
|
||||
virtual wxString BuildName();
|
||||
virtual void BuildSignature(CommandSignature &signature);
|
||||
virtual Command *Create(CommandOutputTarget *target);
|
||||
wxString BuildName() override;
|
||||
void BuildSignature(CommandSignature &signature) override;
|
||||
Command *Create(CommandOutputTarget *target) override;
|
||||
};
|
||||
|
||||
class ImportCommand final : public CommandImplementation
|
||||
@@ -39,7 +39,7 @@ public:
|
||||
{ }
|
||||
|
||||
virtual ~ImportCommand();
|
||||
virtual bool Apply(CommandExecutionContext context);
|
||||
bool Apply(CommandExecutionContext context) override;
|
||||
};
|
||||
|
||||
// Export
|
||||
@@ -47,9 +47,9 @@ public:
|
||||
class ExportCommandType final : public CommandType
|
||||
{
|
||||
public:
|
||||
virtual wxString BuildName();
|
||||
virtual void BuildSignature(CommandSignature &signature);
|
||||
virtual Command *Create(CommandOutputTarget *target);
|
||||
wxString BuildName() override;
|
||||
void BuildSignature(CommandSignature &signature) override;
|
||||
Command *Create(CommandOutputTarget *target) override;
|
||||
};
|
||||
|
||||
class ExportCommand final : public CommandImplementation
|
||||
@@ -61,5 +61,5 @@ public:
|
||||
{ }
|
||||
|
||||
virtual ~ExportCommand();
|
||||
virtual bool Apply(CommandExecutionContext context);
|
||||
bool Apply(CommandExecutionContext context) override;
|
||||
};
|
||||
|
Reference in New Issue
Block a user