* Clear all data that is specific to the current diff. * * This function is called when the application is reset, e.g. when a new diff is started. */
| 57 | * This function is called when the application is reset, e.g. when a new diff is started. |
| 58 | */ |
| 59 | void KDiff3App::resetDiffData() |
| 60 | { |
| 61 | assert(m_pDiffTextWindow1 != nullptr && m_pDiffTextWindow2 != nullptr && m_pDiffTextWindow3 != nullptr && |
| 62 | m_pMergeResultWindow != nullptr); |
| 63 | //insure merge result window never has stale iterators/pointers. |
| 64 | m_pMergeResultWindow->reset(); |
| 65 | |
| 66 | m_diffList12.clear(); |
| 67 | m_diffList23.clear(); |
| 68 | m_diffList13.clear(); |
| 69 | m_diff3LineList.clear(); |
| 70 | mDiff3LineVector.clear(); |
| 71 | m_manualDiffHelpList.clear(); |
| 72 | } |
| 73 | |
| 74 | void KDiff3App::mainInit(TotalDiffStatus* pTotalDiffStatus, const InitFlags inFlags) |
| 75 | { |