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

Method UpdatePendingTracks

libraries/lib-track/PendingTracks.cpp:178–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176}
177
178void PendingTracks::UpdatePendingTracks()
179{
180 if (mPendingUpdates->empty())
181 return;
182 auto pUpdater = mUpdaters.begin();
183 for (const auto &pendingTrack : *mPendingUpdates) {
184 auto src = mTracks.FindById(pendingTrack->GetId());
185 // Copy just a part of the track state, according to the update
186 // function
187 const auto &updater = *pUpdater;
188 if (pendingTrack && src) {
189 if (updater)
190 updater(*pendingTrack, *src);
191 }
192 ++pUpdater;
193 }
194}
195
196/*! @excsafety{No-fail} */
197void PendingTracks::ClearPendingTracks(

Callers 4

DoRecordMethod · 0.80
ProcessUIHandleResultMethod · 0.80
initMethod · 0.80
doRecordMethod · 0.80

Calls 4

FindByIdMethod · 0.80
GetIdMethod · 0.80
emptyMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected