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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user