mirror of
https://github.com/cookiengineer/audacity
synced 2026-03-22 14:15:51 +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:
@@ -99,8 +99,9 @@ bool ProjectsPrefs::Commit()
|
||||
return true;
|
||||
}
|
||||
|
||||
PrefsPanel *ProjectsPrefsFactory::operator () (wxWindow *parent, wxWindowID winid)
|
||||
PrefsPanel::Factory
|
||||
ProjectsPrefsFactory = [](wxWindow *parent, wxWindowID winid)
|
||||
{
|
||||
wxASSERT(parent); // to justify safenew
|
||||
return safenew ProjectsPrefs(parent, winid);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user