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

@@ -97,7 +97,7 @@ void SelectionState::ChangeSelectionOnShiftClick
// Our track was earlier than the first. Extend from the last.
if( !pExtendFrom )
pExtendFrom = (*trackRange.rbegin())->SharedPointer();
pExtendFrom = Track::SharedPointer( *trackRange.rbegin() );
}
SelectNone( tracks );