1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-02-16 07:47:58 +01:00

CommonTrackPanelCell::FindTrack returns shared_ptr

This commit is contained in:
Paul Licameli
2017-06-27 14:12:23 -04:00
parent b3208ab12d
commit 708d84ac22
21 changed files with 43 additions and 42 deletions

View File

@@ -72,7 +72,7 @@ UIHandle::Result TrackPanelResizeHandle::Click
const wxMouseEvent &event = evt.event;
CommonTrackPanelCell *const pCell =
static_cast<CommonTrackPanelCell*>(evt.pCell);
Track *track = track = pCell->FindTrack();
auto track = pCell->FindTrack().get();
if (track && dynamic_cast< TrackControls * >( pCell )) {
// Clicked under a label;
// if stereo, replace left channel with the right: