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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user