Test if the move would pass a barrier. Return true if not.
| 515 | |
| 516 | // Test if the move would pass a barrier. Return true if not. |
| 517 | bool ManualDiffHelpList::isValidMove(LineRef line1, LineRef line2, e_SrcSelector winIdx1, e_SrcSelector winIdx2) const |
| 518 | { |
| 519 | if(line1.isValid() && line2.isValid()) |
| 520 | { |
| 521 | for(const ManualDiffHelpEntry& mdhe: *this) |
| 522 | { |
| 523 | if(!mdhe.isValidMove(line1, line2, winIdx1, winIdx2)) return false; |
| 524 | } |
| 525 | } |
| 526 | return true; // no barrier passed. |
| 527 | } |
| 528 | |
| 529 | void ManualDiffHelpList::insertEntry(e_SrcSelector winIdx, LineRef firstLine, LineRef lastLine) |
| 530 | { |
no test coverage detected