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:
committed by
Paul Licameli
parent
6810095509
commit
1992b0c7e3
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user