1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-02 17:23:18 +02:00

fix Windows build

This commit is contained in:
Paul Licameli 2017-06-25 13:19:44 -04:00
parent 3f670118c7
commit 30317efa03
3 changed files with 5 additions and 3 deletions

View File

@ -53,7 +53,7 @@ class PrefsPanel /* not final */ : public wxPanelWrapper
virtual ~PrefsPanel();
// NEW virtuals
virtual bool Preview() {} // Make tentative changes
virtual void Preview() {} // Make tentative changes
virtual bool Commit() = 0; // used to be called "Apply"
// If it returns True, the Preview button is added below the panel

View File

@ -416,7 +416,7 @@ void SpectrumPrefs::Rollback()
}
}
bool SpectrumPrefs::Preview()
void SpectrumPrefs::Preview()
{
if (!Validate())
return false;
@ -487,6 +487,8 @@ bool SpectrumPrefs::Commit()
SpectrogramSettings *const pSettings = &SpectrogramSettings::defaults();
pSettings->SavePrefs();
}
return true;
}
bool SpectrumPrefs::ShowsPreviewButton()

View File

@ -44,7 +44,7 @@ class SpectrumPrefs final : public PrefsPanel
public:
SpectrumPrefs(wxWindow * parent, WaveTrack *wt);
virtual ~SpectrumPrefs();
bool Preview() override;
void Preview() override;
bool Commit() override;
void Rollback();
bool ShowsPreviewButton() override;