mirror of
https://github.com/cookiengineer/audacity
synced 2026-02-17 00:07:54 +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:
@@ -96,14 +96,14 @@ bool GetInfoCommand::DefineParams( ShuttleParams & S ){
|
||||
|
||||
void GetInfoCommand::PopulateOrExchange(ShuttleGui & S)
|
||||
{
|
||||
auto types = LocalizedStrings( kTypes, nTypes );
|
||||
auto formats = LocalizedStrings( kFormats, nFormats );
|
||||
S.AddSpace(0, 5);
|
||||
|
||||
S.StartMultiColumn(2, wxALIGN_CENTER);
|
||||
{
|
||||
S.TieChoice( _("Type:"), mInfoType, &types);
|
||||
S.TieChoice( _("Format:"), mFormat, &formats);
|
||||
S.TieChoice( _("Type:"),
|
||||
mInfoType, LocalizedStrings( kTypes, nTypes ));
|
||||
S.TieChoice( _("Format:"),
|
||||
mFormat, LocalizedStrings( kFormats, nFormats ));
|
||||
}
|
||||
S.EndMultiColumn();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user