1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-03-06 22:45:29 +01:00

Follow wxWidgets argument conventions for PrefsPanel factories

This commit is contained in:
Paul Licameli
2017-10-27 20:35:52 -04:00
parent 151cbb1305
commit 228388a63c
46 changed files with 139 additions and 138 deletions

View File

@@ -29,8 +29,8 @@ with names like mnod-script-pipe that add NEW features.
////////////////////////////////////////////////////////////////////////////////
/* i18n-hint: Modules are optional extensions to Audacity that add NEW features.*/
ModulePrefs::ModulePrefs(wxWindow * parent)
: PrefsPanel(parent, _("Modules"))
ModulePrefs::ModulePrefs(wxWindow * parent, wxWindowID winid)
: PrefsPanel(parent, winid, _("Modules"))
{
Populate();
}
@@ -168,8 +168,8 @@ wxString ModulePrefs::HelpPageName()
return "Modules_Preferences";
}
PrefsPanel *ModulePrefsFactory::Create(wxWindow *parent)
PrefsPanel *ModulePrefsFactory::operator () (wxWindow *parent, wxWindowID winid)
{
wxASSERT(parent); // to justify safenew
return safenew ModulePrefs(parent);
return safenew ModulePrefs(parent, winid);
}