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