MCPcopy Create free account
hub / github.com/KDE/kdevelop / removeLineMarker

Method removeLineMarker

plugins/patchreview/patchhighlighter.cpp:544–559  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

542}
543
544void PatchHighlighter::removeLineMarker( KTextEditor::MovingRange* range ) {
545 auto* const document = range->document();
546 for (int line = range->start().line(); line <= range->end().line(); ++line) {
547 document->removeMark(line, m_allmarks);
548 }
549
550 // Remove all ranges that are in the same line (the line markers)
551 for (auto it = m_ranges.begin(); it != m_ranges.end();) {
552 if (it.key() != range && range->overlaps(it.key()->toRange())) {
553 delete it.key();
554 it = m_ranges.erase(it);
555 } else {
556 ++it;
557 }
558 }
559}
560
561void PatchHighlighter::addLineMarker(KTextEditor::MovingRange* range, const KompareDiff2::Difference* diff)
562{

Callers

nothing calls this directly

Calls 7

toRangeMethod · 0.80
documentMethod · 0.45
lineMethod · 0.45
startMethod · 0.45
endMethod · 0.45
beginMethod · 0.45
keyMethod · 0.45

Tested by

no test coverage detected