MCPcopy Create free account
hub / github.com/audacity/audacity / Reinsert

Method Reinsert

src/tracks/ui/TimeShiftHandle.cpp:707–718  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

705 }
706
707 void Reinsert(
708 std::unordered_map< Track*, Track* > *pCorrespondence, double offset )
709 {
710 for (auto &pair : detached) {
711 auto pTrack = pair.first;
712 if (pCorrespondence && pCorrespondence->count(pTrack))
713 pTrack = (*pCorrespondence)[pTrack];
714 auto &pShifter = state.shifters[pTrack];
715 if (!pShifter->Attach( std::move( pair.second ), offset ))
716 MigrationFailure();
717 }
718 }
719
720 ClipMoveState &state;
721 DetachedIntervals detached;

Callers 1

DoSlideVerticalMethod · 0.80

Calls 3

moveFunction · 0.85
MigrationFailureFunction · 0.85
AttachMethod · 0.45

Tested by

no test coverage detected