MCPcopy Create free account
hub / github.com/KDE/kdiff3 / resetDiffData

Method resetDiffData

src/pdiff.cpp:59–72  ·  view source on GitHub ↗

* 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. */

Source from the content-addressed store, hash-verified

57 * This function is called when the application is reset, e.g. when a new diff is started.
58 */
59void 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
74void KDiff3App::mainInit(TotalDiffStatus* pTotalDiffStatus, const InitFlags inFlags)
75{

Callers

nothing calls this directly

Calls 2

resetMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected