Return a track in the list that comes after Track t
| 623 | |
| 624 | /// Return a track in the list that comes after Track t |
| 625 | Track *TrackList::GetNext(Track &t, bool linked) const |
| 626 | { |
| 627 | auto node = t.GetNode(); |
| 628 | if (!isNull(node)) { |
| 629 | if (linked && t.HasLinkedTrack()) |
| 630 | node = getNext(node); |
| 631 | |
| 632 | if (!isNull(node)) |
| 633 | node = getNext(node); |
| 634 | |
| 635 | if (!isNull(node)) |
| 636 | return node->get(); |
| 637 | } |
| 638 | return nullptr; |
| 639 | } |
| 640 | |
| 641 | Track *TrackList::GetPrev(Track &t, bool linked) const |
| 642 | { |
no test coverage detected