MCPcopy Create free account
hub / github.com/WinMerge/winmerge / Clear

Method Clear

Src/DiffList.cpp:62–81  ·  view source on GitHub ↗

* @brief Removes all diffs from list. */

Source from the content-addressed store, hash-verified

60 * @brief Removes all diffs from list.
61 */
62void DiffList::Clear()
63{
64 m_diffs.clear();
65 m_firstSignificant = -1;
66 m_lastSignificant = -1;
67 m_firstSignificantLeftMiddle = -1;
68 m_firstSignificantLeftRight = -1;
69 m_firstSignificantMiddleRight = -1;
70 m_firstSignificantLeftOnly = -1;
71 m_firstSignificantMiddleOnly = -1;
72 m_firstSignificantRightOnly = -1;
73 m_firstSignificantConflict = -1;
74 m_lastSignificantLeftMiddle = -1;
75 m_lastSignificantLeftRight = -1;
76 m_lastSignificantMiddleRight = -1;
77 m_lastSignificantLeftOnly = -1;
78 m_lastSignificantMiddleOnly = -1;
79 m_lastSignificantRightOnly = -1;
80 m_lastSignificantConflict = -1;
81}
82
83/**
84 * @brief Returns count of significant diffs in the list.

Callers 9

RescanMethod · 0.45
AdjustDiffBlocksMethod · 0.45
AdjustDiffBlocks3wayMethod · 0.45
ClearPartialMethod · 0.45
TEST_FFunction · 0.45

Calls 1

clearMethod · 0.45

Tested by 1

TEST_FFunction · 0.36