1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-02-09 21:22:05 +01:00

static overloads of Track::SharedPointer when null check is needed...

... Some optimizing compilers don't let us get away with null check on this
in a nonstatic member function.
This commit is contained in:
Paul Licameli
2019-03-23 13:23:46 -04:00
parent 1af342ff64
commit bb634614e6
6 changed files with 15 additions and 8 deletions

View File

@@ -2247,7 +2247,7 @@ void TrackPanel::SetFocusedTrack( Track *t )
// Make sure we always have the first linked track of a stereo track
t = *GetTracks()->FindLeader(t);
auto cell = mAx->SetFocus( t->SharedPointer() ).get();
auto cell = mAx->SetFocus( Track::SharedPointer( t ) ).get();
if (cell) {
AudacityProject::CaptureKeyboard(this);