mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-06 17:13:49 +01:00
ShuttlegGUI: const wxArrayStringEx & arguments, not wxArrayString *...
... for choice, combo, and listbox; reference allows passing temporaries, eliminating need for some variables to hold the string arrays.
This commit is contained in:
@@ -810,7 +810,7 @@ void DeviceToolBar::ShowComboDialog(wxChoice *combo, const wxString &title)
|
||||
}
|
||||
|
||||
#if USE_PORTMIXER
|
||||
auto inputSources = combo->GetStrings();
|
||||
wxArrayStringEx inputSources = combo->GetStrings();
|
||||
|
||||
wxDialogWrapper dlg(nullptr, wxID_ANY, title);
|
||||
dlg.SetName(dlg.GetTitle());
|
||||
@@ -822,7 +822,7 @@ void DeviceToolBar::ShowComboDialog(wxChoice *combo, const wxString &title)
|
||||
S.StartHorizontalLay(wxCENTER, false);
|
||||
{
|
||||
c = S.AddChoice(combo->GetName(),
|
||||
&inputSources,
|
||||
inputSources,
|
||||
combo->GetSelection());
|
||||
}
|
||||
S.EndHorizontalLay();
|
||||
|
||||
Reference in New Issue
Block a user