mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-03 15:20:17 +01:00
Fix (again) calls to AddCheckBox...
... Force you to pass bool now. Break compilation in case you pass literal "false", rather than implicitly converting it to bool true ! See commit7766d9a192which was in 2.3.2 But Max merged later atd9608cddeain 2.4.0, with his effect apparently written analogously with the old code in Normalize from before that, and this quetly compiled with the wrong effects.
This commit is contained in:
@@ -334,6 +334,14 @@ public:
|
||||
wxGrid * AddGrid();
|
||||
wxCheckBox * AddCheckBox( const TranslatableString &Prompt, bool Selected);
|
||||
wxCheckBox * AddCheckBoxOnRight( const TranslatableString &Prompt, bool Selected);
|
||||
|
||||
// These deleted overloads are meant to break compilation of old calls that
|
||||
// passed literal "true" and "false" strings
|
||||
wxCheckBox * AddCheckBox( const TranslatableString &Prompt, const wxChar *) = delete;
|
||||
wxCheckBox * AddCheckBox( const TranslatableString &Prompt, const char *) = delete;
|
||||
wxCheckBox * AddCheckBoxOnRight( const TranslatableString &Prompt, const wxChar *) = delete;
|
||||
wxCheckBox * AddCheckBoxOnRight( const TranslatableString &Prompt, const char *) = delete;
|
||||
|
||||
wxComboBox * AddCombo( const TranslatableString &Prompt,
|
||||
const wxString &Selected, const wxArrayStringEx & choices );
|
||||
wxChoice * AddChoice( const TranslatableString &Prompt,
|
||||
|
||||
@@ -329,12 +329,12 @@ void EffectLoudness::PopulateOrExchange(ShuttleGui & S)
|
||||
mStereoIndCheckBox = S
|
||||
.Validator<wxGenericValidator>( &mStereoInd )
|
||||
.AddCheckBox(XO("Normalize stereo channels independently"),
|
||||
mStereoInd ? wxT("true") : wxT("false"));
|
||||
mStereoInd );
|
||||
|
||||
mDualMonoCheckBox = S
|
||||
.Validator<wxGenericValidator>( &mDualMono )
|
||||
.AddCheckBox(XO("Treat mono as dual-mono (recommended)"),
|
||||
mDualMono ? wxT("true") : wxT("false"));
|
||||
mDualMono );
|
||||
}
|
||||
S.EndVerticalLay();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user