mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-25 15:53:52 +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:
@@ -131,7 +131,7 @@ public:
|
||||
void Destroy();
|
||||
|
||||
// Required
|
||||
virtual wxWindow *OptionsCreate(wxWindow *parent, int format);
|
||||
wxWindow *OptionsCreate(wxWindow *parent, int format) override;
|
||||
|
||||
int Export(AudacityProject *project,
|
||||
int channels,
|
||||
|
||||
@@ -324,7 +324,7 @@ public:
|
||||
int subformat = 0) override;
|
||||
// optional
|
||||
wxString GetExtension(int index);
|
||||
virtual bool CheckFileName(wxFileName &filename, int format);
|
||||
bool CheckFileName(wxFileName &filename, int format) override;
|
||||
|
||||
private:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user