mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-02 06:40:12 +01:00
Remove the nullary override of Effect::Preview
This commit is contained in:
@@ -123,8 +123,6 @@ public:
|
||||
virtual NumericFormatSymbol GetDurationFormat() = 0;
|
||||
virtual void SetDuration(double seconds) = 0;
|
||||
|
||||
virtual void Preview() = 0;
|
||||
|
||||
// Preset handling
|
||||
virtual RegistryPath GetUserPresetsGroup(const RegistryPath & name) = 0;
|
||||
virtual RegistryPath GetCurrentSettingsGroup() = 0;
|
||||
|
||||
@@ -728,11 +728,6 @@ void Effect::SetDuration(double seconds)
|
||||
return;
|
||||
}
|
||||
|
||||
void Effect::Preview()
|
||||
{
|
||||
Preview(false);
|
||||
}
|
||||
|
||||
RegistryPath Effect::GetUserPresetsGroup(const RegistryPath & name)
|
||||
{
|
||||
RegistryPath group = wxT("UserPresets");
|
||||
|
||||
@@ -179,8 +179,6 @@ class AUDACITY_DLL_API Effect /* not final */ : public wxEvtHandler,
|
||||
virtual NumericFormatSymbol GetSelectionFormat() /* not override? */; // time format in Selection toolbar
|
||||
void SetDuration(double duration) override;
|
||||
|
||||
void Preview() override;
|
||||
|
||||
RegistryPath GetUserPresetsGroup(const RegistryPath & name) override;
|
||||
RegistryPath GetCurrentSettingsGroup() override;
|
||||
RegistryPath GetFactoryDefaultsGroup() override;
|
||||
|
||||
@@ -1687,7 +1687,7 @@ void EffectNoiseReduction::Dialog::OnPreview(wxCommandEvent & WXUNUSED(event))
|
||||
*m_pSettings = mTempSettings;
|
||||
m_pSettings->mDoProfile = false;
|
||||
|
||||
m_pEffect->Preview();
|
||||
m_pEffect->Preview( false );
|
||||
}
|
||||
|
||||
void EffectNoiseReduction::Dialog::OnReduceNoise( wxCommandEvent & WXUNUSED(event))
|
||||
|
||||
@@ -689,7 +689,7 @@ void NoiseRemovalDialog::OnPreview(wxCommandEvent & WXUNUSED(event))
|
||||
m_pEffect->mDoProfile = oldDoProfile;
|
||||
} );
|
||||
|
||||
m_pEffect->Preview();
|
||||
m_pEffect->Preview( false );
|
||||
}
|
||||
|
||||
void NoiseRemovalDialog::OnRemoveNoise( wxCommandEvent & WXUNUSED(event))
|
||||
|
||||
Reference in New Issue
Block a user