mirror of
https://github.com/cookiengineer/audacity
synced 2026-03-10 16:35:32 +01:00
PrefsPanel::Factory is a specialization of std::function...
... We don't need to define a class for it
This commit is contained in:
@@ -277,11 +277,12 @@ bool QualityPrefs::Commit()
|
||||
return true;
|
||||
}
|
||||
|
||||
PrefsPanel *QualityPrefsFactory::operator () (wxWindow *parent, wxWindowID winid)
|
||||
PrefsPanel::Factory
|
||||
QualityPrefsFactory = [](wxWindow *parent, wxWindowID winid)
|
||||
{
|
||||
wxASSERT(parent); // to justify safenew
|
||||
return safenew QualityPrefs(parent, winid);
|
||||
}
|
||||
};
|
||||
|
||||
sampleFormat QualityPrefs::SampleFormatChoice()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user