mirror of
https://github.com/cookiengineer/audacity
synced 2026-03-05 22:21:15 +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:
@@ -95,14 +95,6 @@ void ModulePrefs::Populate()
|
||||
|
||||
void ModulePrefs::PopulateOrExchange(ShuttleGui & S)
|
||||
{
|
||||
wxArrayStringEx StatusChoices{
|
||||
_("Disabled" ) ,
|
||||
_("Enabled" ) ,
|
||||
_("Ask" ) ,
|
||||
_("Failed" ) ,
|
||||
_("New" ) ,
|
||||
};
|
||||
|
||||
S.SetBorder(2);
|
||||
S.StartScroller();
|
||||
|
||||
@@ -117,7 +109,16 @@ void ModulePrefs::PopulateOrExchange(ShuttleGui & S)
|
||||
S.StartMultiColumn( 2 );
|
||||
int i;
|
||||
for(i=0;i<(int)mModules.size();i++)
|
||||
S.TieChoice( mModules[i], mStatuses[i], &StatusChoices );
|
||||
S.TieChoice( mModules[i],
|
||||
mStatuses[i],
|
||||
{
|
||||
_("Disabled" ) ,
|
||||
_("Enabled" ) ,
|
||||
_("Ask" ) ,
|
||||
_("Failed" ) ,
|
||||
_("New" ) ,
|
||||
}
|
||||
);
|
||||
S.EndMultiColumn();
|
||||
}
|
||||
if( mModules.size() < 1 )
|
||||
|
||||
Reference in New Issue
Block a user