mirror of
https://github.com/cookiengineer/audacity
synced 2026-03-07 06:55:52 +01:00
Define and use wxArrayStringEx...
reducing verbosity where there were repeated calls of Add(), and defining move construction and assignment for efficient returns from functions
This commit is contained in:
@@ -95,12 +95,13 @@ void ModulePrefs::Populate()
|
||||
|
||||
void ModulePrefs::PopulateOrExchange(ShuttleGui & S)
|
||||
{
|
||||
wxArrayString StatusChoices;
|
||||
StatusChoices.Add( _("Disabled" ) );
|
||||
StatusChoices.Add( _("Enabled" ) );
|
||||
StatusChoices.Add( _("Ask" ) );
|
||||
StatusChoices.Add( _("Failed" ) );
|
||||
StatusChoices.Add( _("New" ) );
|
||||
wxArrayStringEx StatusChoices{
|
||||
_("Disabled" ) ,
|
||||
_("Enabled" ) ,
|
||||
_("Ask" ) ,
|
||||
_("Failed" ) ,
|
||||
_("New" ) ,
|
||||
};
|
||||
|
||||
S.SetBorder(2);
|
||||
S.StartScroller();
|
||||
|
||||
Reference in New Issue
Block a user