mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-26 14:41:14 +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:
@@ -47,7 +47,7 @@ class ScreenFrame final : public wxFrame
|
||||
ScreenFrame(wxWindow *parent, wxWindowID id);
|
||||
virtual ~ScreenFrame();
|
||||
|
||||
virtual bool ProcessEvent(wxEvent & event);
|
||||
bool ProcessEvent(wxEvent & event) override;
|
||||
|
||||
private:
|
||||
void Populate();
|
||||
@@ -143,7 +143,7 @@ class ScreenFrameTimer final : public wxTimer
|
||||
evt = event.Clone();
|
||||
}
|
||||
|
||||
virtual void Notify()
|
||||
void Notify() override
|
||||
{
|
||||
evt->SetEventObject(NULL);
|
||||
screenFrame->ProcessEvent(*evt);
|
||||
|
||||
Reference in New Issue
Block a user