| 367 | } |
| 368 | |
| 369 | wxString 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 | |
| 387 | void TrackList::RecalcPositions(TrackNodePointer node) |
| 388 | { |
no test coverage detected