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