1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-04-22 22:21:11 +02: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 @@ handling.
////////////////////////////////////////////////////////////////////////////////
ProjectsPrefs::ProjectsPrefs(wxWindow * parent)
: PrefsPanel(parent,
ProjectsPrefs::ProjectsPrefs(wxWindow * parent, wxWindowID winid)
: PrefsPanel(parent, winid,
/* i18n-hint: (noun) i.e Audacity projects. */
_("Projects"))
{
@@ -89,8 +89,8 @@ wxString ProjectsPrefs::HelpPageName()
return "Projects_Preferences";
}
PrefsPanel *ProjectsPrefsFactory::Create(wxWindow *parent)
PrefsPanel *ProjectsPrefsFactory::operator () (wxWindow *parent, wxWindowID winid)
{
wxASSERT(parent); // to justify safenew
return safenew ProjectsPrefs(parent);
return safenew ProjectsPrefs(parent, winid);
}