mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-13 14:13:32 +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:
@@ -320,7 +320,7 @@ ImportRawDialog::ImportRawDialog(wxWindow * parent,
|
||||
SetName(GetTitle());
|
||||
|
||||
ShuttleGui S(this, eIsCreating);
|
||||
wxArrayString encodings;
|
||||
wxArrayStringEx encodings;
|
||||
int num;
|
||||
int selection;
|
||||
int endian;
|
||||
@@ -398,13 +398,13 @@ ImportRawDialog::ImportRawDialog(wxWindow * parent,
|
||||
S.StartTwoColumn();
|
||||
{
|
||||
mEncodingChoice = S.Id(ChoiceID).AddChoice(_("Encoding:"),
|
||||
&encodings,
|
||||
encodings,
|
||||
selection);
|
||||
mEndianChoice = S.Id(ChoiceID).AddChoice(_("Byte order:"),
|
||||
&endians,
|
||||
endians,
|
||||
endian);
|
||||
mChannelChoice = S.Id(ChoiceID).AddChoice(_("Channels:"),
|
||||
&chans,
|
||||
chans,
|
||||
mChannels - 1);
|
||||
}
|
||||
S.EndTwoColumn();
|
||||
|
Reference in New Issue
Block a user