1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-26 15:23:48 +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

@@ -55,9 +55,9 @@ BEGIN_EVENT_TABLE(MidiIOPrefs, PrefsPanel)
// EVT_CHOICE(RecordID, MidiIOPrefs::OnDevice)
END_EVENT_TABLE()
MidiIOPrefs::MidiIOPrefs(wxWindow * parent)
MidiIOPrefs::MidiIOPrefs(wxWindow * parent, wxWindowID winid)
/* i18n-hint: untranslatable acronym for "Musical Instrument Device Interface" */
: PrefsPanel(parent, _("MIDI Devices"))
: PrefsPanel(parent, winid, _("MIDI Devices"))
{
Populate();
}
@@ -296,10 +296,10 @@ wxString MidiIOPrefs::HelpPageName()
return "MIDI_Devices_Preferences";
}
PrefsPanel *MidiIOPrefsFactory::Create(wxWindow *parent)
PrefsPanel *MidiIOPrefsFactory::operator () (wxWindow *parent, wxWindowID winid)
{
wxASSERT(parent); // to justify safenew
return safenew MidiIOPrefs(parent);
return safenew MidiIOPrefs(parent, winid);
}
#endif