Changeset View
Changeset View
Standalone View
Standalone View
plugins/problemreporter/problemhighlighter.cpp
Show First 20 Lines • Show All 94 Lines • ▼ Show 20 Line(s) | 91 | { | |||
---|---|---|---|---|---|
95 | qDeleteAll(m_topHLRanges); | 95 | qDeleteAll(m_topHLRanges); | ||
96 | } | 96 | } | ||
97 | 97 | | |||
98 | void ProblemHighlighter::setProblems(const QVector<IProblem::Ptr>& problems) | 98 | void ProblemHighlighter::setProblems(const QVector<IProblem::Ptr>& problems) | ||
99 | { | 99 | { | ||
100 | if (!m_document) | 100 | if (!m_document) | ||
101 | return; | 101 | return; | ||
102 | 102 | | |||
103 | if (m_problems == problems) | ||||
104 | return; | ||||
105 | | ||||
103 | const bool hadProblems = !m_problems.isEmpty(); | 106 | const bool hadProblems = !m_problems.isEmpty(); | ||
104 | m_problems = problems; | 107 | m_problems = problems; | ||
105 | 108 | | |||
106 | qDeleteAll(m_topHLRanges); | 109 | qDeleteAll(m_topHLRanges); | ||
107 | m_topHLRanges.clear(); | 110 | m_topHLRanges.clear(); | ||
108 | m_problemsForRanges.clear(); | 111 | m_problemsForRanges.clear(); | ||
109 | 112 | | |||
110 | IndexedString url(m_document->url()); | 113 | IndexedString url(m_document->url()); | ||
▲ Show 20 Lines • Show All 95 Lines • Show Last 20 Lines |