1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-02-05 11:13:16 +01:00

TrackFactory functions return std::unique_ptr, although some callers...

... release() them for now.
This commit is contained in:
Paul Licameli
2016-03-02 14:59:31 -05:00
parent f42a953752
commit 5ef4dd46a5
31 changed files with 91 additions and 135 deletions

View File

@@ -29,9 +29,9 @@
#define TIMETRACK_MIN 0.01
#define TIMETRACK_MAX 10.0
TimeTrack *TrackFactory::NewTimeTrack()
std::unique_ptr<TimeTrack> TrackFactory::NewTimeTrack()
{
return new TimeTrack(mDirManager, mZoomInfo);
return std::make_unique<TimeTrack>(mDirManager, mZoomInfo);
}
TimeTrack::TimeTrack(DirManager *projDirManager, const ZoomInfo *zoomInfo):