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

Method MakeUniqueTrackName

libraries/lib-track/Track.cpp:369–385  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

367}
368
369wxString TrackList::MakeUniqueTrackName(const wxString& baseTrackName) const
370{
371 int n = 1;
372 while(true) {
373 auto name = wxString::Format("%s %d", baseTrackName, n++);
374
375 bool found {false};
376 for(const auto track : Tracks<const Track>()) {
377 if(track->GetName() == name) {
378 found = true;
379 break;
380 }
381 }
382 if(!found)
383 return name;
384 }
385}
386
387void TrackList::RecalcPositions(TrackNodePointer node)
388{

Callers 12

CreateMethod · 0.80
DoEffectMethod · 0.80
ProcessOneMethod · 0.80
DoRecordMethod · 0.80
DropoutSubscriptionMethod · 0.80
OnNewWaveTrackFunction · 0.80
OnNewStereoTrackFunction · 0.80
DoMixAndRenderFunction · 0.80
doRecordMethod · 0.80
performEffectMethod · 0.80
newMonoTrackMethod · 0.80
newStereoTrackMethod · 0.80

Calls 1

GetNameMethod · 0.45

Tested by

no test coverage detected