1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-08 14:13:57 +01:00

Fix unitialized variable and remove duplicate

This commit is contained in:
Leland Lucius
2015-05-16 03:00:47 -05:00
parent 151b4bbc8c
commit 6cc7bcf384

View File

@@ -2400,7 +2400,7 @@ void Effect::Preview(bool dryOnly)
if (t1 <= t0)
return;
bool success;
bool success = true;
WaveTrack *mixLeft = NULL;
WaveTrack *mixRight = NULL;
@@ -2463,17 +2463,16 @@ void Effect::Preview(bool dryOnly)
// Apply effect
bool bSuccess(true);
if (!dryOnly) {
mProgress = new ProgressDialog(GetName(),
_("Preparing preview"),
pdlgHideCancelButton); // Have only "Stop" button.
bSuccess = Process();
success = Process();
delete mProgress;
mProgress = NULL;
}
if (bSuccess)
if (success)
{
WaveTrackArray playbackTracks;
WaveTrackArray recordingTracks;