mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-23 17:30:17 +01:00
Track factory cleanup (#646)
* Don't need TrackFactory to make LabelTrack * Don't need TrackFactory to make NoteTrack * Don't need TrackFactory to make TimeTrack, or ZoomInfo in the factory * Remove some forward declarations * Rename TrackFactory as WaveTrackFactory, move it out of Track.cpp
This commit is contained in:
@@ -770,7 +770,7 @@ void ProjectManager::OnCloseWindow(wxCloseEvent & event)
|
||||
|
||||
window.DestroyChildren();
|
||||
|
||||
TrackFactory::Destroy( project );
|
||||
WaveTrackFactory::Destroy( project );
|
||||
|
||||
// Remove self from the global array, but defer destruction of self
|
||||
auto pSelf = AllProjects{}.Remove( project );
|
||||
@@ -918,7 +918,7 @@ void ProjectManager::ResetProjectToEmpty() {
|
||||
SelectUtilities::DoSelectAll( project );
|
||||
TrackUtilities::DoRemoveTracks( project );
|
||||
|
||||
TrackFactory::Reset( project );
|
||||
WaveTrackFactory::Reset( project );
|
||||
|
||||
projectFileManager.Reset();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user