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

Simplify iterations over WaveClips outside of WaveTrack/WaveClip; ...

... also add some const qualifiers
This commit is contained in:
Paul Licameli
2016-02-19 19:58:30 -05:00
committed by Paul Licameli
parent cb7872f980
commit b548e641ae
14 changed files with 41 additions and 89 deletions

View File

@@ -333,9 +333,9 @@ class AUDACITY_DLL_API WaveTrack final : public Track {
*/
double LongSamplesToTime(sampleCount pos) const;
// Get access to the clips in the tracks. This is used by
// track artists and also by TrackPanel when sliding...it would
// be cleaner if this could be removed, though...
// Get access to the clips in the tracks.
const WaveClipList &GetClips() const { return mClips; }
WaveClipList::compatibility_iterator GetClipIterator() { return mClips.GetFirst(); }
// Create NEW clip and add it to this track. Returns a pointer