mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-28 08:13:54 +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:
@@ -57,11 +57,7 @@ class DevicePrefs final : public PrefsPanel
|
||||
DECLARE_EVENT_TABLE()
|
||||
};
|
||||
|
||||
/// A PrefsPanelFactory that creates one DevicePrefs panel.
|
||||
class DevicePrefsFactory final : public PrefsPanelFactory
|
||||
{
|
||||
public:
|
||||
PrefsPanel *operator () (wxWindow *parent, wxWindowID winid) override;
|
||||
};
|
||||
/// A PrefsPanel::Factory that creates one DevicePrefs panel.
|
||||
extern PrefsPanel::Factory DevicePrefsFactory;
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user