1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-26 00:03:52 +02:00

Fix a compilation warning, make some member functions const

This commit is contained in:
Paul-Licameli
2015-04-19 07:27:33 -04:00
committed by Paul Licameli
parent 6810095509
commit 1992b0c7e3
5 changed files with 6 additions and 6 deletions

View File

@@ -270,7 +270,7 @@ void Track::ReorderList(bool resize)
}
#endif
bool Track::IsSyncLockSelected()
bool Track::IsSyncLockSelected() const
{
#ifdef EXPERIMENTAL_SYNC_LOCK
AudacityProject *p = GetActiveProject();
@@ -278,7 +278,7 @@ bool Track::IsSyncLockSelected()
return false;
SyncLockedTracksIterator git(mList);
Track *t = git.First(this);
Track *t = git.First(const_cast<Track*>(this));
if (!t) {
// Not in a sync-locked group.