mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-19 17:11:12 +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:
@@ -30,26 +30,26 @@ public:
|
||||
|
||||
// IdentInterface implementatino
|
||||
|
||||
virtual wxString GetPath();
|
||||
virtual wxString GetSymbol();
|
||||
virtual wxString GetName();
|
||||
virtual wxString GetVendor();
|
||||
virtual wxString GetVersion();
|
||||
virtual wxString GetDescription();
|
||||
wxString GetPath() override;
|
||||
wxString GetSymbol() override;
|
||||
wxString GetName() override;
|
||||
wxString GetVendor() override;
|
||||
wxString GetVersion() override;
|
||||
wxString GetDescription() override;
|
||||
|
||||
// ModuleInterface implementation
|
||||
|
||||
virtual bool Initialize();
|
||||
virtual void Terminate();
|
||||
bool Initialize() override;
|
||||
void Terminate() override;
|
||||
|
||||
virtual bool AutoRegisterPlugins(PluginManagerInterface & pm);
|
||||
virtual wxArrayString FindPlugins(PluginManagerInterface & pm);
|
||||
virtual bool RegisterPlugin(PluginManagerInterface & pm, const wxString & path);
|
||||
bool AutoRegisterPlugins(PluginManagerInterface & pm) override;
|
||||
wxArrayString FindPlugins(PluginManagerInterface & pm) override;
|
||||
bool RegisterPlugin(PluginManagerInterface & pm, const wxString & path) override;
|
||||
|
||||
virtual bool IsPluginValid(const wxString & path);
|
||||
bool IsPluginValid(const wxString & path) override;
|
||||
|
||||
virtual IdentInterface *CreateInstance(const wxString & path);
|
||||
virtual void DeleteInstance(IdentInterface *instance);
|
||||
IdentInterface *CreateInstance(const wxString & path) override;
|
||||
void DeleteInstance(IdentInterface *instance) override;
|
||||
|
||||
private:
|
||||
// VampEffectModule implementation
|
||||
|
@@ -43,34 +43,34 @@ public:
|
||||
|
||||
// IdentInterface implementation
|
||||
|
||||
virtual wxString GetPath();
|
||||
virtual wxString GetSymbol();
|
||||
virtual wxString GetName();
|
||||
virtual wxString GetVendor();
|
||||
virtual wxString GetVersion();
|
||||
virtual wxString GetDescription();
|
||||
wxString GetPath() override;
|
||||
wxString GetSymbol() override;
|
||||
wxString GetName() override;
|
||||
wxString GetVendor() override;
|
||||
wxString GetVersion() override;
|
||||
wxString GetDescription() override;
|
||||
|
||||
// EffectIdentInterface implementation
|
||||
|
||||
virtual EffectType GetType();
|
||||
virtual wxString GetFamily();
|
||||
virtual bool IsInteractive();
|
||||
virtual bool IsDefault();
|
||||
EffectType GetType() override;
|
||||
wxString GetFamily() override;
|
||||
bool IsInteractive() override;
|
||||
bool IsDefault() override;
|
||||
|
||||
// EffectClientInterface implementation
|
||||
|
||||
virtual int GetAudioInCount();
|
||||
virtual bool GetAutomationParameters(EffectAutomationParameters & parms);
|
||||
virtual bool SetAutomationParameters(EffectAutomationParameters & parms);
|
||||
int GetAudioInCount() override;
|
||||
bool GetAutomationParameters(EffectAutomationParameters & parms) override;
|
||||
bool SetAutomationParameters(EffectAutomationParameters & parms) override;
|
||||
|
||||
// Effect implementation
|
||||
|
||||
virtual bool Init();
|
||||
virtual bool Process();
|
||||
virtual void End();
|
||||
virtual void PopulateOrExchange(ShuttleGui & S);
|
||||
virtual bool TransferDataToWindow();
|
||||
virtual bool TransferDataFromWindow();
|
||||
bool Init() override;
|
||||
bool Process() override;
|
||||
void End() override;
|
||||
void PopulateOrExchange(ShuttleGui & S) override;
|
||||
bool TransferDataToWindow() override;
|
||||
bool TransferDataFromWindow() override;
|
||||
|
||||
private:
|
||||
// VampEffect implemetation
|
||||
|
Reference in New Issue
Block a user