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

Method calcDiff3LineVector

src/diff.cpp:1561–1571  ·  view source on GitHub ↗

Convert the list to a vector of pointers

Source from the content-addressed store, hash-verified

1559
1560// Convert the list to a vector of pointers
1561void Diff3LineList::calcDiff3LineVector(Diff3LineVector& d3lv)
1562{
1563 d3lv.resize(size());
1564 Diff3LineList::iterator i;
1565 size_t j = 0;
1566 for(i = begin(); i != end(); ++i, ++j)
1567 {
1568 d3lv[j] = &(*i);
1569 }
1570 assert(j == d3lv.size());
1571}
1572
1573// Just make sure that all input lines are in the output too, exactly once.
1574void Diff3LineList::debugLineCheck(const LineType size, const e_SrcSelector srcSelector) const

Callers 1

mainInitMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected