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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user