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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user