1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-15 17:11:20 +01:00

More const qualifications, and mutables, for functions that draw tracks...

... The display related  members that had to become mutable are probably
ones that don't belong in the track classes, ultimately.
This commit is contained in:
Paul Licameli
2016-02-27 12:12:40 -05:00
parent 05f5375e4a
commit 70c1d57591
15 changed files with 98 additions and 93 deletions

View File

@@ -970,7 +970,7 @@ void Ruler::Update()
Update(NULL);
}
void Ruler::Update(TimeTrack* timetrack)// Envelope *speedEnv, long minSpeed, long maxSpeed )
void Ruler::Update(const TimeTrack* timetrack)// Envelope *speedEnv, long minSpeed, long maxSpeed )
{
const ZoomInfo *zoomInfo = NULL;
if (!mLog && mOrientation == wxHORIZONTAL)
@@ -1295,7 +1295,7 @@ void Ruler::Draw(wxDC& dc)
Draw( dc, NULL);
}
void Ruler::Draw(wxDC& dc, TimeTrack* timetrack)
void Ruler::Draw(wxDC& dc, const TimeTrack* timetrack)
{
mDC = &dc;
if( mLength <=0 )