mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-05 08:33:53 +01: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:
@@ -99,9 +99,9 @@ class BlockFile;
|
||||
class AudacityApp final : public wxApp {
|
||||
public:
|
||||
AudacityApp();
|
||||
virtual bool OnInit(void);
|
||||
virtual int OnExit(void);
|
||||
virtual void OnFatalException();
|
||||
bool OnInit(void) override;
|
||||
int OnExit(void) override;
|
||||
void OnFatalException() override;
|
||||
|
||||
int FilterEvent(wxEvent & event);
|
||||
|
||||
@@ -151,9 +151,9 @@ class AudacityApp final : public wxApp {
|
||||
|
||||
#ifdef __WXMAC__
|
||||
// In response to Apple Events
|
||||
virtual void MacOpenFile(const wxString &fileName) ;
|
||||
virtual void MacPrintFile(const wxString &fileName) ;
|
||||
virtual void MacNewFile() ;
|
||||
void MacOpenFile(const wxString &fileName) override;
|
||||
void MacPrintFile(const wxString &fileName) override;
|
||||
void MacNewFile() override;
|
||||
#endif
|
||||
|
||||
#if defined(__WXMSW__) && !defined(__WXUNIVERSAL__) && !defined(__CYGWIN__)
|
||||
|
||||
Reference in New Issue
Block a user