mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-23 23:03:55 +02: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:
@@ -336,7 +336,7 @@ void EffectChangeSpeed::PopulateOrExchange(ShuttleGui & S)
|
||||
|
||||
wxASSERT(nVinyl == WXSIZEOF(kVinylStrings));
|
||||
|
||||
wxArrayString vinylChoices;
|
||||
wxArrayStringEx vinylChoices;
|
||||
for (int i = 0; i < nVinyl; i++)
|
||||
{
|
||||
if (i == kVinyl_NA)
|
||||
@@ -350,12 +350,12 @@ void EffectChangeSpeed::PopulateOrExchange(ShuttleGui & S)
|
||||
}
|
||||
|
||||
mpChoice_FromVinyl =
|
||||
S.Id(ID_FromVinyl).AddChoice(_("from"), &vinylChoices);
|
||||
S.Id(ID_FromVinyl).AddChoice(_("from"), vinylChoices);
|
||||
mpChoice_FromVinyl->SetName(_("From rpm"));
|
||||
mpChoice_FromVinyl->SetSizeHints(100, -1);
|
||||
|
||||
mpChoice_ToVinyl =
|
||||
S.Id(ID_ToVinyl).AddChoice(_("to"), &vinylChoices);
|
||||
S.Id(ID_ToVinyl).AddChoice(_("to"), vinylChoices);
|
||||
mpChoice_ToVinyl->SetName(_("To rpm"));
|
||||
mpChoice_ToVinyl->SetSizeHints(100, -1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user