mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-23 17:30:17 +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:
@@ -37,10 +37,6 @@ class WarningsPrefs final : public PrefsPanel
|
||||
void PopulateOrExchange(ShuttleGui & S) override;
|
||||
};
|
||||
|
||||
/// A PrefsPanelFactory that creates one WarningPrefs panel.
|
||||
class WarningsPrefsFactory final : public PrefsPanelFactory
|
||||
{
|
||||
public:
|
||||
PrefsPanel *operator () (wxWindow *parent, wxWindowID winid) override;
|
||||
};
|
||||
/// A PrefsPanel::Factory that creates one WarningPrefs panel.
|
||||
extern PrefsPanel::Factory WarningsPrefsFactory;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user