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