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

Track duplication methods return unique_ptr, although some callers...

... simply release() them for now.
This commit is contained in:
Paul Licameli
2016-03-02 14:37:47 -05:00
parent 5162ab5c5b
commit f42a953752
14 changed files with 39 additions and 33 deletions

View File

@@ -746,7 +746,7 @@ void TrackList::DoAssign(const TrackList &that)
mDestructorDeletesTracks = true;
TrackListConstIterator it(&that);
for (const Track *track = it.First(); track; track = it.Next())
Add(track->Duplicate());
Add(track->Duplicate().release());
}
void TrackList::Swap(TrackList &that)