1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-02-18 08:48:17 +01:00

Rewrite many iterations over tracks and channels in various places

This commit is contained in:
Paul Licameli
2018-09-18 12:03:37 -04:00
parent fee0f284fe
commit 968d63d5fd
14 changed files with 137 additions and 267 deletions

View File

@@ -501,18 +501,7 @@ bool MacroCommands::IsMono()
return false;
}
TrackListIterator iter(tracks);
Track *t = iter.First();
bool mono = true;
while (t) {
if (t->GetLinked()) {
mono = false;
break;
}
t = iter.Next();
}
return mono;
return ( tracks->Any() - &Track::IsLeader ).empty();
}
wxString MacroCommands::BuildCleanFileName(const wxString &fileName, const wxString &extension)