1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-15 15:11:12 +02:00

Reimplement Track::Pointer using std::enable_shared_from_this...

... now the Track need not be owned yet by a TrackList
This commit is contained in:
Paul Licameli
2018-11-18 20:50:24 -05:00
parent 3dba70120c
commit 6f89c48873
19 changed files with 74 additions and 73 deletions

View File

@@ -693,7 +693,7 @@ UIHandle::Result TimeShiftHandle::Drag
}
// May need a shared_ptr to reassign mCapturedTrack below
auto pTrack = Track::Pointer( track );
auto pTrack = track->SharedPointer();
if (!pTrack)
return RefreshCode::RefreshNone;