mirror of
https://github.com/cookiengineer/audacity
synced 2026-03-07 23:15:36 +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:
@@ -180,8 +180,9 @@ void ModulePrefs::SetModuleStatus(const FilePath &fname, int iStatus){
|
||||
gPrefs->Flush();
|
||||
}
|
||||
|
||||
PrefsPanel *ModulePrefsFactory::operator () (wxWindow *parent, wxWindowID winid)
|
||||
PrefsPanel::Factory
|
||||
ModulePrefsFactory = [](wxWindow *parent, wxWindowID winid)
|
||||
{
|
||||
wxASSERT(parent); // to justify safenew
|
||||
return safenew ModulePrefs(parent, winid);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user