Fix uninitialized variable in Equalizer effect

Delete mCustomBackup, as it is never used
This commit is contained in:
Daniel Winzen 2015-04-30 11:49:21 +02:00
parent 428f5c8391
commit 038989e41d
2 changed files with 1 additions and 8 deletions

View File

@ -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

View File

@ -212,7 +212,6 @@ private:
double mEQVals[NUMBER_OF_BANDS+1];
EQCurveArray mCurves;
EQCurve mCustomBackup;
Envelope *mLogEnvelope;
Envelope *mLinEnvelope;