| 35 | } |
| 36 | |
| 37 | static int32 GetCurrentIndex(SListView<TSharedPtr<FDiffSingleResult>> const& ListView, const TArray<TSharedPtr<FDiffSingleResult>>& ListViewSource) |
| 38 | { |
| 39 | const TArray<TSharedPtr<FDiffSingleResult>>& Selected = ListView.GetSelectedItems(); |
| 40 | if (Selected.Num() == 1) |
| 41 | { |
| 42 | for (int32 Index = 0; Index < ListViewSource.Num(); ++Index) |
| 43 | { |
| 44 | if (ListViewSource[Index] == Selected[0]) |
| 45 | { |
| 46 | return Index; |
| 47 | } |
| 48 | } |
| 49 | } |
| 50 | return -1; |
| 51 | } |
| 52 | |
| 53 | void FlowDiffUtils::SelectNextRow(SListView<TSharedPtr<FDiffSingleResult>>& ListView, const TArray<TSharedPtr<FDiffSingleResult>>& ListViewSource) |
| 54 | { |
no outgoing calls
no test coverage detected