| 1622 | |
| 1623 | |
| 1624 | QList<Patch> diff_match_patch::patch_make(const QString &text1, |
| 1625 | const QString &text2) { |
| 1626 | // Check for null inputs. |
| 1627 | if (text1.isNull() || text2.isNull()) { |
| 1628 | throw "Null inputs. (patch_make)"; |
| 1629 | } |
| 1630 | |
| 1631 | // No diffs provided, compute our own. |
| 1632 | QList<Diff> diffs = diff_main(text1, text2, true); |
| 1633 | if (diffs.size() > 2) { |
| 1634 | diff_cleanupSemantic(diffs); |
| 1635 | diff_cleanupEfficiency(diffs); |
| 1636 | } |
| 1637 | |
| 1638 | return patch_make(text1, diffs); |
| 1639 | } |
| 1640 | |
| 1641 | |
| 1642 | QList<Patch> diff_match_patch::patch_make(const QList<Diff> &diffs) { |
no test coverage detected