1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-02-07 12:12:23 +01:00

WaveTrack.cpp does not depend on ODManager.cpp ...

... Breaking up an s.c.c. of 6 into 3 components:
ODManager, ODTask, ODWaveTrackTaskQueue
UndoManager
WaveClip, WaveTrack

Rewrite the OD tasks and queues to hold weak pointers to tracks, so the
track destructor need not notify them.
This commit is contained in:
Paul Licameli
2019-06-05 11:46:07 -04:00
parent 71250b1dc3
commit 86320838de
16 changed files with 101 additions and 120 deletions

View File

@@ -210,7 +210,7 @@ void ProjectFileManager::EnqueueODTasks()
//add the track to the already created tasks that correspond to the od flags in the wavetrack.
for(unsigned int i=0;i<newTasks.size();i++) {
if(newTasks[i]->GetODType() & odFlags)
newTasks[i]->AddWaveTrack(wt);
newTasks[i]->AddWaveTrack(wt->SharedPointer< WaveTrack >());
}
//create whatever NEW tasks we need to.
@@ -236,7 +236,7 @@ void ProjectFileManager::EnqueueODTasks()
}
if(newTask)
{
newTask->AddWaveTrack(wt);
newTask->AddWaveTrack(wt->SharedPointer< WaveTrack >());
newTasks.push_back(std::move(newTask));
}
}