mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-28 08:13:54 +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:
@@ -28,7 +28,7 @@ class DevicePrefs final : public PrefsPanel
|
||||
public:
|
||||
DevicePrefs(wxWindow * parent);
|
||||
virtual ~DevicePrefs();
|
||||
virtual bool Apply();
|
||||
bool Apply() override;
|
||||
|
||||
private:
|
||||
void Populate();
|
||||
@@ -57,7 +57,7 @@ class DevicePrefs final : public PrefsPanel
|
||||
class DevicePrefsFactory final : public PrefsPanelFactory
|
||||
{
|
||||
public:
|
||||
virtual PrefsPanel *Create(wxWindow *parent);
|
||||
PrefsPanel *Create(wxWindow *parent) override;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user