1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-21 14:02:57 +02: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

@@ -91,9 +91,7 @@ bool AudacityPrintout::OnPrintPage(int WXUNUSED(page))
ZoomInfo zoomInfo(0.0, width / screenDuration);
int y = rulerPageHeight;
TrackListIterator iter(mTracks);
Track *n = iter.First();
while (n) {
for (auto n : mTracks->Any()) {
wxRect r;
r.x = 0;
r.y = y;
@@ -107,7 +105,6 @@ bool AudacityPrintout::OnPrintPage(int WXUNUSED(page))
dc->SetPen(*wxBLACK_PEN);
AColor::Line(*dc, 0, r.y, width, r.y);
n = iter.Next();
y += r.height;
};