1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-04-23 14:33:57 +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:
Paul Licameli
2018-02-01 19:23:02 -05:00
parent dcd82b8ef5
commit dd86346156
57 changed files with 244 additions and 253 deletions

View File

@@ -59,8 +59,6 @@ enum {
void WaveformPrefs::Populate()
{
mScaleChoices = WaveformSettings::GetScaleNames();
// Reuse the same choices and codes as for Interface prefs
GUIPrefs::GetRangeChoices(&mRangeChoices, &mRangeCodes);
@@ -93,12 +91,12 @@ void WaveformPrefs::PopulateOrExchange(ShuttleGui & S)
mScaleChoice =
S.Id(ID_SCALE).TieChoice(_("S&cale") + wxString(wxT(":")),
mTempSettings.scaleType,
&mScaleChoices);
WaveformSettings::GetScaleNames());
mRangeChoice =
S.Id(ID_RANGE).TieChoice(_("Waveform dB &range") + wxString(wxT(":")),
mTempSettings.dBRange,
&mRangeChoices);
mRangeChoices);
}
S.EndTwoColumn();
}