mirror of
https://github.com/cookiengineer/audacity
synced 2026-02-07 20:22:13 +01:00
TrackFactory functions return std::unique_ptr, although some callers...
... release() them for now.
This commit is contained in:
@@ -98,9 +98,9 @@ SONFNS(AutoSave)
|
||||
|
||||
|
||||
|
||||
NoteTrack *TrackFactory::NewNoteTrack()
|
||||
NoteTrack::Holder TrackFactory::NewNoteTrack()
|
||||
{
|
||||
return new NoteTrack(mDirManager);
|
||||
return std::make_unique<NoteTrack>(mDirManager);
|
||||
}
|
||||
|
||||
NoteTrack::NoteTrack(DirManager * projDirManager):
|
||||
|
||||
Reference in New Issue
Block a user