mirror of
https://github.com/cookiengineer/audacity
synced 2026-02-16 15:57:52 +01:00
Track duplication methods return unique_ptr, although some callers...
... simply release() them for now.
This commit is contained in:
@@ -214,7 +214,7 @@ void UndoManager::ModifyState(const TrackList * l,
|
||||
TrackListConstIterator iter(l);
|
||||
const Track *t = iter.First();
|
||||
while (t) {
|
||||
tracksCopy->Add(t->Duplicate());
|
||||
tracksCopy->Add(t->Duplicate().release());
|
||||
t = iter.Next();
|
||||
}
|
||||
|
||||
@@ -259,7 +259,7 @@ void UndoManager::PushState(const TrackList * l,
|
||||
TrackListConstIterator iter(l);
|
||||
const Track *t = iter.First();
|
||||
while (t) {
|
||||
tracksCopy->Add(t->Duplicate());
|
||||
tracksCopy->Add(t->Duplicate().release());
|
||||
t = iter.Next();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user