1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-29 08:43:56 +01:00

Manage TrackPanelResizerCell by shared_ptr, no singleton

This commit is contained in:
Paul Licameli
2017-06-26 16:13:56 -04:00
parent 35ce499ce1
commit 28b40e02fb
5 changed files with 24 additions and 12 deletions

View File

@@ -3118,9 +3118,7 @@ TrackPanelCellIterator &TrackPanelCellIterator::operator++ ()
mpCell = mpTrack->GetVRulerControl().get();
break;
case CellType::Resizer: {
auto instance = &TrackPanelResizerCell::Instance();
instance->mpTrack = mpTrack;
mpCell = instance;
mpCell = mpTrack->GetResizer().get();
break;
}
default: