1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-03-07 06:55:52 +01:00

Unitary fixes (#598)

* Eliminate unneeded back-pointer to project from non-wave Tracks...

... now that DirManager is gone

* Remove unused declarations

* SampleData::mProject was not used

* Correct ProjectFileIO::GetLibraryError

* Remove unnecessary #include directives
This commit is contained in:
Paul Licameli
2020-07-02 12:42:25 -04:00
committed by GitHub
parent e7fd679ae6
commit 1fcb77ebce
18 changed files with 37 additions and 67 deletions

View File

@@ -38,7 +38,7 @@
std::shared_ptr<TimeTrack> TrackFactory::NewTimeTrack()
{
return std::make_shared<TimeTrack>(&mProject, mZoomInfo);
return std::make_shared<TimeTrack>(mZoomInfo);
}
static ProjectFileIORegistry::Entry registerFactory{
@@ -53,8 +53,8 @@ static ProjectFileIORegistry::Entry registerFactory{
}
};
TimeTrack::TimeTrack(AudacityProject *project, const ZoomInfo *zoomInfo):
Track(project)
TimeTrack::TimeTrack(const ZoomInfo *zoomInfo):
Track()
, mZoomInfo(zoomInfo)
{
mEnvelope = std::make_unique<BoundedEnvelope>(true, TIMETRACK_MIN, TIMETRACK_MAX, 1.0);