mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-20 23:51:18 +01:00
static TrackFactory::Get()...
... not member functions of AudacityProject
This commit is contained in:
@@ -33,7 +33,6 @@
|
||||
#include "AColor.h"
|
||||
#include "DirManager.h"
|
||||
#include "Prefs.h"
|
||||
#include "Project.h"
|
||||
#include "ProjectFileIORegistry.h"
|
||||
|
||||
#include "InconsistencyException.h"
|
||||
@@ -107,7 +106,7 @@ SONFNS(AutoSave)
|
||||
static ProjectFileIORegistry::Entry registerFactory{
|
||||
wxT( "notetrack" ),
|
||||
[]( AudacityProject &project ){
|
||||
auto &trackFactory = *project.GetTrackFactory();
|
||||
auto &trackFactory = TrackFactory::Get( project );
|
||||
auto &tracks = TrackList::Get( project );
|
||||
return tracks.Add(trackFactory.NewNoteTrack());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user