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

Method IsDiffSignificant

Src/DiffList.cpp:125–132  ·  view source on GitHub ↗

* @brief Checks if diff in given list index is significant or not. * @param [in] nDiff Index of DIFFRANGE to check. * @return true if diff is significant, false if not. */

Source from the content-addressed store, hash-verified

123 * @return true if diff is significant, false if not.
124 */
125bool DiffList::IsDiffSignificant(int nDiff) const
126{
127 const DIFFRANGE * dfi = DiffRangeAt(nDiff);
128 if (dfi->op != OP_TRIVIAL)
129 return true;
130 else
131 return false;
132}
133
134/**
135 * @brief Get significant difference index of the diff.

Callers 7

CopyMultipleListMethod · 0.80
OnCurdiffMethod · 0.80
OnUpdateCurdiffMethod · 0.80
OnLButtonDblClkMethod · 0.80
OnX2YMethod · 0.80
OnUpdateX2YMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected