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

Method update

src/merger.cpp:43–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43void Merger::MergeData::update()
44{
45 if(d.numberOfEquals() > 0)
46 d.adjustNumberOfEquals(-1);
47 else if(idx == 0 && d.diff1() > 0)
48 d.adjustDiff1(-1);
49 else if(idx == 1 && d.diff2() > 0)
50 d.adjustDiff2(-1);
51
52 while(d.numberOfEquals() == 0 && ((idx == 0 && d.diff1() == 0) || (idx == 1 && d.diff2() == 0)) && pDiffList != nullptr && it != pDiffList->end())
53 {
54 d = *it;
55 ++it;
56 }
57}
58
59void Merger::next()
60{

Callers 1

nextMethod · 0.80

Calls 7

numberOfEqualsMethod · 0.80
adjustNumberOfEqualsMethod · 0.80
diff1Method · 0.80
adjustDiff1Method · 0.80
diff2Method · 0.80
adjustDiff2Method · 0.80
endMethod · 0.80

Tested by

no test coverage detected