forked from qt-creator/qt-creator
Fix warning: "Missing reference in range-for with non trivial type"
[-Wclazy-range-loop] Change-Id: I5dcb263c754d423740e7bce3dcb948d52f2dec67 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -295,7 +295,7 @@ void HighlightScrollBarOverlay::updateCache()
|
||||
m_highlightCache.clear();
|
||||
|
||||
const QHash<Id, QVector<Highlight>> highlightsForId = m_highlightController->highlights();
|
||||
for (QVector<Highlight> highlights : highlightsForId) {
|
||||
for (const QVector<Highlight> &highlights : highlightsForId) {
|
||||
for (const auto &highlight : highlights) {
|
||||
auto &highlightMap = m_highlightCache[highlight.priority][highlight.color];
|
||||
insertPosition(&highlightMap, highlight.position);
|
||||
|
||||
Reference in New Issue
Block a user