mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-26 00:03:52 +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:
@@ -47,7 +47,7 @@ private:
|
||||
|
||||
int mNumLangs;
|
||||
wxArrayString mLangCodes;
|
||||
wxArrayString mLangNames;
|
||||
wxArrayStringEx mLangNames;
|
||||
|
||||
DECLARE_EVENT_TABLE()
|
||||
};
|
||||
@@ -88,7 +88,7 @@ LangChoiceDialog::LangChoiceDialog(wxWindow * parent,
|
||||
{
|
||||
S.SetBorder(15);
|
||||
mChoice = S.AddChoice(_("Choose Language for Audacity to use:"),
|
||||
&mLangNames,
|
||||
mLangNames,
|
||||
lang);
|
||||
}
|
||||
S.EndVerticalLay();
|
||||
|
||||
Reference in New Issue
Block a user