mirror of
https://github.com/cookiengineer/audacity
synced 2026-02-06 03:32:09 +01:00
Fix uninitialized variable in Equalizer effect
Delete mCustomBackup, as it is never used
This commit is contained in:
@@ -251,16 +251,10 @@ EffectEqualization::EffectEqualization()
|
||||
|
||||
mCurve = NULL;
|
||||
mDirty = false;
|
||||
mDisallowCustom = false;
|
||||
|
||||
// Load the EQ curves
|
||||
LoadCurves();
|
||||
if (mDisallowCustom)
|
||||
{
|
||||
mCustomBackup.Name = wxT("unnamed");
|
||||
EQCurve &realCustom = mCurves[mCurves.GetCount()-1];
|
||||
wxASSERT(realCustom.Name.IsSameAs(wxT("unnamed")));
|
||||
mCustomBackup.points = realCustom.points;
|
||||
}
|
||||
|
||||
// Note: initial curve is set in TransferDataToWindow
|
||||
|
||||
|
||||
@@ -212,7 +212,6 @@ private:
|
||||
double mEQVals[NUMBER_OF_BANDS+1];
|
||||
|
||||
EQCurveArray mCurves;
|
||||
EQCurve mCustomBackup;
|
||||
|
||||
Envelope *mLogEnvelope;
|
||||
Envelope *mLinEnvelope;
|
||||
|
||||
Reference in New Issue
Block a user