1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-23 17:30:17 +01:00

static TrackFactory::Get()...

... not member functions of AudacityProject
This commit is contained in:
Paul Licameli
2019-01-22 10:59:44 -05:00
parent 4ba4d0978b
commit 116ff70756
18 changed files with 99 additions and 73 deletions

View File

@@ -44,7 +44,7 @@ std::shared_ptr<TimeTrack> TrackFactory::NewTimeTrack()
static ProjectFileIORegistry::Entry registerFactory{
wxT( "timetrack" ),
[]( AudacityProject &project ){
auto &trackFactory = *project.GetTrackFactory();
auto &trackFactory = TrackFactory::Get( project );
auto &tracks = TrackList::Get( project );
return tracks.Add(trackFactory.NewTimeTrack());
}