mirror of
https://github.com/cookiengineer/audacity
synced 2026-03-28 00:55:50 +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:
@@ -1019,7 +1019,7 @@ int ExportFFmpeg::AskResample(int bitrate, int rate, int lowrate, int highrate,
|
||||
}
|
||||
S.EndHorizontalLay();
|
||||
|
||||
wxArrayString choices;
|
||||
wxArrayStringEx choices;
|
||||
int selected = -1;
|
||||
for (int i = 0; sampRates[i] > 0; i++)
|
||||
{
|
||||
@@ -1041,7 +1041,7 @@ int ExportFFmpeg::AskResample(int bitrate, int rate, int lowrate, int highrate,
|
||||
S.StartHorizontalLay(wxALIGN_CENTER, false);
|
||||
{
|
||||
choice = S.AddChoice(_("Sample Rates"),
|
||||
&choices,
|
||||
choices,
|
||||
selected);
|
||||
}
|
||||
S.EndHorizontalLay();
|
||||
|
||||
Reference in New Issue
Block a user